Re: [squeak-dev] primMicrosecondClock?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] primMicrosecondClock?

johnmci

Well I had to go back and find my note January 17, 2010 3:57:10 PM PST
        microsecond timing for GC work
on
Squeak Virtual Machine Development Discussion <[hidden email]>

There was lots of discussion, solutions and  well up to the maintainers to provide or not provide the api.

Seems to work on a 5.8b11 mac cog vm, but since it's window dressing on top of the vm, it's hard to know
if it's compiled into the vm you have (well other than see it returns 0).

On 2011-01-06, at 2:58 PM, Yoshiki Ohshima wrote:

>  Hello,
>
>  I'm looking at primMicrosecondClock on Windows with 4.1.1 VM and Cog
> 2341 just to profile parts of my code (so when is the epoch, and
> etc. does not matter here).
>
>  I code snippet like this:
>
> | t |
> t := Time primMicrosecondClock.
> (Delay forSeconds: 1) wait.
> Time primMicrosecondClock - t
>
> and I get "1001" or "1000" on 4.1.1 and "0" on Cog... Where does it
> stand?
>
>  Searching in the email archive, it appears that it "works" on Unix
> VM.  Is it reliably working?  How about Mac?
>
> -- Yoshiki
>

--
===========================================================================
John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================