[issue13846] Add time.monotonic() function

STINNER Victor report at bugs.python.org
Tue Jan 24 01:22:30 CET 2012


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

After time.wallclock() (issue #10278), let add a time.monotomic() function. It is similar to time.wallclock() (try to get the most accurate clock) but is not available if the system doesn't provide a monotonic clock. It may also fail at runtime if Python cannot find a monotonic clock, whereas time.clock() and time.wallclock() fallback on a wallclock which may go backward on NTP adjust.

The documentation of the patch should be improved :-)

wallclock() tests may be simplified or dropped because they may fail on NTP adjust.

----------
files: monotonic.patch
keywords: patch
messages: 151868
nosy: belopolsky, haypo
priority: normal
severity: normal
status: open
title: Add time.monotonic() function
versions: Python 3.3
Added file: http://bugs.python.org/file24307/monotonic.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13846>
_______________________________________


More information about the Python-bugs-list mailing list