[issue10278] add time.wallclock() method

Alexander Belopolsky report at bugs.python.org
Mon Nov 1 18:12:07 CET 2010

Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

Why does this need to be in stdlib?

AFAICT, the proposed patch is just:

if <appropriate test>:
   wallclock = time.clock
   wallclock = time.time

which is easy enough to stick in your measuring code or a project's utilities module.

If others really want to see this in stdlib, I would prefer to place it in a more specialized module such as profile.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list