Millisecond clock resolution for DateAndTime now

Tim Rowledge tim at sumeru.stanford.edu
Mon Sep 27 02:57:19 UTC 2004


"David T. Lewis" <lewis at mail.msen.com> wrote:

> media.  The world is a wobbly place, full of uncertainty and all manner
> of imprecision.
I demand that there be rigidly defined areas of doubt and uncertainty!
(I hope you've all caught up with the new hitchhikers series recently
started on www.bbc.co.uk.radio ?)

[snip]
> gmtime() has precision to the nearest second. Does RISC OS provide a
> gettimeofday() function? This is a BSD function that answers time to
> millisecond precision, and also provides the time zone offset and a
> flag denoting daylight savings time. If this or something like it is
> available on RISC OS, then it should be possible to implement Lex's
> suggestion on all the major Squeak platforms.
I expect I can come up with something close enough. If nothing else I
can rip code out of the unixlib implementation.

Now here's a thought - do all OSs (any) successfully deal with those 22
or so leap seconds? Are they algorithmic or declared by fiat? 


tim
--
Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
Useful random insult:- Couldn't pour water out of a boot with
instructions on the heel.



More information about the Squeak-dev mailing list