clock_getres.2: On Linux CLOCK_MONOTONIC counts time that the system has run since boot

Reported-by: Jens Thoms Toerring <jt@toerring.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2018-05-13 20:12:59 +02:00
parent bccacb94dd
commit 7d882a4a2a
1 changed files with 8 additions and 3 deletions

View File

@ -138,9 +138,14 @@ and probably also architecture support for this flag in the
.BR vdso (7).
.TP
.B CLOCK_MONOTONIC
Clock that cannot be set and represents monotonic time since
some unspecified starting point.
This clock is not affected by discontinuous jumps in the system time
Clock that cannot be set and represents monotonic time since\(emas described
by POSIX\(em"some unspecified point in the past".
On Linux, that point corresponds to the number of seconds that the system
has been running since it was booted.
.IP
The
.B CLOCK_MONOTONIC
clock is not affected by discontinuous jumps in the system time
(e.g., if the system administrator manually changes the clock),
but is affected by the incremental adjustments performed by
.BR adjtime (3)