[Python-checkins] peps: PEP 418: Add definitions of "monotonic" and "steady"
victor.stinner
python-checkins at python.org
Wed Apr 4 01:09:50 CEST 2012
http://hg.python.org/peps/rev/dc0b671d6aa4
changeset: 4195:dc0b671d6aa4
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed Apr 04 01:07:55 2012 +0200
summary:
PEP 418: Add definitions of "monotonic" and "steady"
files:
pep-0418.txt | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/pep-0418.txt b/pep-0418.txt
--- a/pep-0418.txt
+++ b/pep-0418.txt
@@ -219,6 +219,27 @@
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
===============
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list