
POSIX function for time with millisecs
>> In POSIX, time() returns seconds since 1 Jan 70. Anything else is
>> system-dependant.
Ron> What about clock_gettime(3). On Digital UNIX 3.2G, its man page
Ron> claims that the function is P1003.1b
That's the POSIX Realtime spec, not the core POSIX.1 standard. The
Single Unix spec defines the realtime functions as an optional feature
group.
In practice, gettimeofday() is more portable, though it isn't part of
POSIX.
--
Andrew.
comp.unix.programmer FAQ: see <URL: http://www.erlenstar.demon.co.uk/unix/>
or <URL: http://www.whitefang.com/unix/>