Page 1 of 1

now

Posted: Fri Aug 19, 2005 10:47 pm
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.

Posted: Fri Aug 19, 2005 11:16 pm
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

Posted: Sat Aug 20, 2005 7:34 am
by newdep
Thanks!