PEP 418: Add definitions of "monotonic" and "steady"
This commit is contained in:
parent
aed5ab41f6
commit
f6c80084f7
21
pep-0418.txt
21
pep-0418.txt
|
@ -219,6 +219,27 @@ Return a dictionary with the following keys:
|
||||||
daemon)
|
daemon)
|
||||||
|
|
||||||
|
|
||||||
|
Definitions
|
||||||
|
===========
|
||||||
|
|
||||||
|
Monotonic
|
||||||
|
---------
|
||||||
|
|
||||||
|
A monotonic clock cannot go backward. It may give the same value for two close
|
||||||
|
reads depending on the clock resolution.
|
||||||
|
|
||||||
|
On Linux, CLOCK_MONOTONIC is a monotonic clock but its rate is adjusted by NTP.
|
||||||
|
|
||||||
|
Steady
|
||||||
|
------
|
||||||
|
|
||||||
|
A steady clock is a clock with a stable rate.
|
||||||
|
|
||||||
|
The C++ Timeout Specifiction uses the following definition: "Objects of class
|
||||||
|
steady_clock represent clocks for which values of time_point advance at a
|
||||||
|
steady rate relative to real time. That is, the clock may not be adjusted."
|
||||||
|
|
||||||
|
|
||||||
Hardware clocks
|
Hardware clocks
|
||||||
===============
|
===============
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue