[issue14222] Use time.steady() to implement timeout

STINNER Victor report at bugs.python.org
Thu Apr 5 01:54:35 CEST 2012


STINNER Victor <victor.stinner at gmail.com> added the comment:

Other modules that should use a monotonic clock instead of the system time:

 - timeit: default_timer = time.time (but time.clock is still the best clock on Windows for this mmodule)
 - subprocess for Popen.communicate() timeoout
 - sched
 - socket, ssl: timeout. need a C function which uses a monotonic clock if available, or fallback to the system clock
 - trace

See also issues #12338 and #14309.

----------

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


More information about the Python-bugs-list mailing list