[Python-checkins] peps: PEP 418: time.get_clock_info() now returns an object

victor.stinner python-checkins at python.org
Sun Apr 29 02:27:43 CEST 2012


http://hg.python.org/peps/rev/a9a6a0851544
changeset:   4322:a9a6a0851544
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Sun Apr 29 02:26:42 2012 +0200
summary:
  PEP 418: time.get_clock_info() now returns an object

files:
  pep-0418.txt |  10 +++++-----
  1 files changed, 5 insertions(+), 5 deletions(-)


diff --git a/pep-0418.txt b/pep-0418.txt
--- a/pep-0418.txt
+++ b/pep-0418.txt
@@ -114,15 +114,15 @@
 * ``"process_time"``: ``time.process_time()``
 * ``"time"``: ``time.time()``
 
-Return a dictionary with the following keys:
+Return a ``time.clock_info`` object which has the following attributes:
 
- * ``"implementation"`` (str): name of the underlying operating system
+ * ``implementation`` (str): name of the underlying operating system
    function.  Examples: ``"QueryPerformanceCounter()"``,
    ``"clock_gettime(CLOCK_REALTIME)"``.
- * ``"resolution"`` (float): resolution in seconds of the clock.
- * ``"is_monotonic"`` (bool): True if the clock cannot go backward.
- * ``"is_adjusted"`` (bool): True if the clock is adjusted (e.g. by a
+ * ``is_monotonic`` (bool): True if the clock cannot go backward.
+ * ``is_adjusted`` (bool): True if the clock is adjusted (e.g. by a
    NTP daemon).
+ * ``resolution`` (float): resolution in seconds of the clock.
 
 
 time.monotonic()

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list