[issue20475] pystone.py in 3.4 still uses time.clock(), even though it's marked as deprecated since 3.3

STINNER Victor report at bugs.python.org
Sun Feb 2 23:31:31 CET 2014


STINNER Victor added the comment:

> That's why I just propose to switch it to time.time(), which surely is available on each and every Python version and implementation.

It's not the same clock. time.clock() measures the process time, which is different from the wall clock time.

Compare time.get_clock_info('clock') to time.get_clock_info('time') and time.get_clock_info('perf_counter').

See also the PEP 418 which lists all these clocks and explain why time.clock() was deprecated:
http://www.python.org/dev/peps/pep-0418/

----------

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


More information about the Python-bugs-list mailing list