[issue31803] Remove not portable time.clock(), replaced by time.perf_counter() and time.process_time()
STINNER Victor
report at bugs.python.org
Tue Oct 17 09:09:30 EDT 2017
STINNER Victor <victor.stinner at gmail.com> added the comment:
With the PR, Python 3.7 will still requires the C clock() function to build on Unix, since time.process_time() uses it as the last fallback if all other functions failed.
Maybe we can require to have other functions used by time.process_time() (clock_gettime(CLOCK_PROF), getrusage(), times(), ...), but I consider that it can be done later. This change may impact the Python portability: compilation error when building Python, see bpo-22624.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31803>
_______________________________________
More information about the Python-bugs-list
mailing list