[Python-checkins] peps: PEP 418: Update time.get_clock_info() according to the implementation
victor.stinner
python-checkins at python.org
Wed May 2 14:00:33 CEST 2012
http://hg.python.org/peps/rev/4f33e5ec6145
changeset: 4345:4f33e5ec6145
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed May 02 14:00:30 2012 +0200
summary:
PEP 418: Update time.get_clock_info() according to the implementation
files:
pep-0418.txt | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/pep-0418.txt b/pep-0418.txt
--- a/pep-0418.txt
+++ b/pep-0418.txt
@@ -86,7 +86,7 @@
* time.monotonic() and time.perf_counter() may or may not be adjusted.
For example, ``CLOCK_MONOTONIC`` is slewed on Linux, whereas
``GetTickCount()`` is not adjusted on Windows.
- ``time.get_clock_info('monotonic')['is_adjusted']`` can be used to check
+ ``time.get_clock_info('monotonic')['adjusted']`` can be used to check
if the monotonic clock is adjusted or not.
* No time.thread_time() function is proposed by this PEP because it is
not needed by Python standard library nor a common asked feature.
@@ -119,8 +119,8 @@
* ``implementation`` (str): name of the underlying operating system
function. Examples: ``"QueryPerformanceCounter()"``,
``"clock_gettime(CLOCK_REALTIME)"``.
- * ``is_monotonic`` (bool): True if the clock cannot go backward.
- * ``is_adjusted`` (bool): True if the clock is adjusted (e.g. by a
+ * ``monotonic`` (bool): True if the clock cannot go backward.
+ * ``adjusted`` (bool): True if the clock can be adjusted (e.g. by a
NTP daemon).
* ``resolution`` (float): resolution in seconds of the clock.
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list