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

STINNER Victor report at bugs.python.org
Fri Oct 20 13:09:10 EDT 2017


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

I wrote the PR 4062 which removes time.clock() implementation: time.clock becomes an alias to time.perf_counter.

haypo at selma$ ./python
Python 3.7.0a2+ (heads/clock-dirty:16b6a3033e, Oct 20 2017, 18:55:58) 
>>> import time
>>> time.clock is time.perf_counter
True

----------

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


More information about the Python-bugs-list mailing list