Gordon Bergling 3e0f3678ec time(3): Refine history in the manual page
The time() system call first appeared in Version 1 AT&T UNIX.  Through
the Version 3 AT&T UNIX, it returned 60 Hz ticks since an epoch that
changed occasionally, because it was a 32-bit value that overflowed in a
little over 2 years.

In Version 4 AT&T UNIX the granularity of the return value was reduced to
whole seconds, delaying the aforementioned overflow until 2038.

Version 7 AT&T UNIX 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.

4.1cBSD 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.

With most valuable input from Warner (imp@).

Reviewed by:	0mp, jilles, imp
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D34751
2022-04-14 10:04:14 +02:00
..
2020-04-13 08:42:13 +00:00
2020-12-11 00:13:39 +00:00
2017-05-23 06:53:31 +00:00
2019-08-01 18:51:06 +00:00
2017-05-23 06:56:57 +00:00
2020-05-15 11:58:01 +00:00
2020-10-24 00:03:11 +00:00
2020-12-27 12:57:26 +02:00
2018-08-07 15:24:19 +00:00
2020-03-12 18:28:23 +00:00
2017-05-23 09:29:05 +00:00
2021-02-15 20:23:32 +01:00
2020-09-09 18:07:13 +00:00
2021-04-18 10:20:11 +02:00
2018-02-27 10:55:33 +00:00
2021-02-23 20:08:10 +02:00
2019-07-17 19:41:44 +00:00
2020-12-03 05:49:59 +00:00
2020-03-30 21:25:00 +00:00
2020-08-31 21:55:25 +00:00
2020-11-13 14:56:34 +00:00
2021-05-13 16:23:44 +02:00
2021-12-31 12:57:01 -05:00
2017-12-06 22:06:48 +00:00
2022-01-10 10:15:15 -07:00
2020-01-21 16:31:08 +00:00
2021-02-23 20:08:10 +02:00