struct timeval for Sys V Rel 3.0 ?
Doug Gwyn
gwyn at brl-smoke.ARPA
Thu May 12 00:27:20 AEST 1988
In article <14203 at brl-adm.ARPA> cm36+ at andrew.cmu.edu (C. V. R. Murthy) writes:
>gettimeofday () system call. Although Wollongongs WIN Rel 1.0 (that we have)
>refers to gettimeofday (2), there is no such call on at least System V Rel 3.0.
gettimeofday() is Berkeley-specific although Wollongong MIGHT have
provided one in their package.
>Essentialy , this requires a microsecond accurate time (namely BSD's struct
>timeval). I want to know how one could get time accurate to microseconds .
You can't get time like that from a normal UNIX system, even a Berkeley
one. Apart from the uncertainties introduced by time-sharing scheduling,
most implementations don't even maintain internal time that accurately.
100Hz clock is typical. Use time() instead.
More information about the Comp.unix.wizards
mailing list