Main index | Section 3 | 日本語 | Options |
#include <time.h>
The return value is also stored in amp;* tloc, provided that tloc is non-null.
In AT&T v4 the granularity of the return value was reduced to whole seconds, delaying the aforementioned overflow until 2038.
AT&T v7 introduced the ftime() system call, which returned time at a millisecond level, though retained the gtime() system call (exposed as time() in userland). time() could have been implemented as a wrapper around ftime(), but that wasn't done.
BSD 4.1c implemented a higher-precision time function gettimeofday() to replace ftime() and reimplemented time() in terms of that.
Since FreeBSD 9 the implementation of time() uses clock_gettime(CLOCK_SECOND) instead of gettimeofday() for performance reasons.
Systems conforming to earlier versions of the C and POSIX standards (including older versions of FreeBSD ) did not set amp;* tloc in the error case.
TIME (3) | April 14, 2022 |
Main index | Section 3 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | I think Unix and snowflakes are the only two classes of objects in the universe in which no two instances ever match exactly. | ” |
— Noel Chiappa |