New submission from STINNER Victor <victor.stin...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue14690> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com