newLISP Fan Club

Forum => newLISP and the O.S. => Topic started by: newdep on August 19, 2005, 03:47:20 PM

Title: now
Post by: newdep on August 19, 2005, 03:47:20 PM
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.
Title:
Post by: Lutz on August 19, 2005, 04:16:44 PM
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
Title:
Post by: newdep on August 20, 2005, 12:34:00 AM
Thanks!