[New-bugs-announce] [issue14690] Use monotonic time for sched, trace and subprocess modules
STINNER Victor
report at bugs.python.org
Sun Apr 29 03:18:54 CEST 2012
New submission from STINNER Victor <victor.stinner at gmail.com>:
The PEP 418 added a new time.monotonic() function. The sched, trace and subprocess modules should use it, if available, to avoid issues when the system time is changed.
Attached patch uses the time.monotonic() function when available.
See also the issue #14222 (same issue for queue and threading) and the PEP 418.
--
socket and ssl modules should also use a monotonic clock if available, but these modules are implemented in C. The C implementation of time.monotonic() requires the librt library and is written in the timemodule.c. It requires more work to reuse it in the socket and ssl modules.
----------
files: use_monotonic.patch
keywords: patch
messages: 159559
nosy: haypo, neologix, rhettinger
priority: normal
severity: normal
status: open
title: Use monotonic time for sched, trace and subprocess modules
Added file: http://bugs.python.org/file25400/use_monotonic.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14690>
_______________________________________
More information about the New-bugs-announce
mailing list