[issue31803] time.clock() should emit a DeprecationWarning

Serhiy Storchaka report at bugs.python.org
Wed Oct 18 05:09:00 EDT 2017


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Initially the time module was a thin wrapper around C and OS time-related functions. It may be confusing that the behavior of time.clock() differs from the behavior of C's clock().

The documentation for clock() on MSDN suggests to use GetProcessTimes() for the behavior conforming the C standard.

https://msdn.microsoft.com/en-us/library/4e2ess30.aspx

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31803>
_______________________________________


More information about the Python-bugs-list mailing list