[issue31803] time.clock() should emit a DeprecationWarning
Serhiy Storchaka
report at bugs.python.org
Sun Oct 22 09:38:15 EDT 2017
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
Yes, it is time.process_time(). This was the cause of adding two new functions time.perf_counter() and time.process_time() and deprecating (in the documentation only) time.clock(). On Windows time.clock() does include time elapsed during sleep, on non-Windows it doesn't. time.clock() should be replaced with the one of these functions, depending on the purpose of its use. Only the user knows for what purposes it uses time.clock() and what is the correct replacement.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31803>
_______________________________________
More information about the Python-bugs-list
mailing list