PEP 418: Add definitions of "monotonic" and "steady"

This commit is contained in:
Victor Stinner 2012-04-04 01:07:55 +02:00
parent aed5ab41f6
commit f6c80084f7
1 changed files with 21 additions and 0 deletions

View File

@ -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
=============== ===============