pub enum Clock {
Tai,
RealTime,
BootTime,
Monotonic,
MonotonicRaw,
}
Expand description
Available internal Linux timers.
Variants§
Tai
A nonsettable system-wide clock derived from wall-clock time but ignoring leap seconds.
This clock does not experience discontinuities and backwards jumps caused by
NTP inserting leap seconds as RealTime
does.
This is International Atomic Time (TAI).
RealTime
A settable system-wide clock that measures real (i.e., wall-clock) time.
This clock is affected by discontinuous jumps in the system time
(e.g., if the system administrator manually changes the clock),
and by the incremental adjustments performed by
adjtime
and NTP.
BootTime
Similar to Monotonic
, but it also includes
any time that the system is suspended.
Monotonic
A nonsettable system-wide clock that represents monotonic time since the system booted.
This 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
adjtime
and NTP.
This time never go backwards, but successive calls may return identical (not-increased) time values.
This clock does not count time that the system is suspended.