[Python-checkins] peps: PEP 418: Fix pseudo-code of time.monotonic() on Mac OS X

victor.stinner python-checkins at python.org
Wed Apr 18 01:55:25 CEST 2012


http://hg.python.org/peps/rev/d1b6aa9e5873
changeset:   4265:d1b6aa9e5873
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Wed Apr 18 01:55:21 2012 +0200
summary:
  PEP 418: Fix pseudo-code of time.monotonic() on Mac OS X

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


diff --git a/pep-0418.txt b/pep-0418.txt
--- a/pep-0418.txt
+++ b/pep-0418.txt
@@ -152,7 +152,7 @@
         def monotonic():
             if monotonic.factor is None:
                 factor = _time.mach_timebase_info()
-                monotonic.factor = timebase[0] / timebase[1]
+                monotonic.factor = timebase[0] / timebase[1] * 1e-9
             return _time.mach_absolute_time() * monotonic.factor
         monotonic.factor = None
 

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


More information about the Python-checkins mailing list