now

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?
Locked
newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

now

Post by newdep »

Hi Lutz,

The manual speeks of Microseconds with 'now on OS-Specific.
What does that exactly mean? that i.e. windows does not have it
but unix does?

Im using that for my random generator but need to know if
its portable to windows.. (seed (nth 6 (now)))

Regards, Norman.
-- (define? (Cornflakes))

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

The value is always given in microseconds but on Linux it might say:

123456

and on Windows

123000

In both cases it means roughly 123 milliseconds but on Linux we have a better resolution, while on Windows the last three digits will always be 000 rounded to the nearest millisecond.

Lutz

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

Thanks!
-- (define? (Cornflakes))

Locked