A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-checkins/2012-April/112793.html below:

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

[Python-checkins] peps: PEP 418: Fix pseudo-code of time.monotonic() on Mac OS X [Python-checkins] peps: PEP 418: Fix pseudo-code of time.monotonic() on Mac OS Xvictor.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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4