[issue10278] add time.wallclock() method

Alexander Belopolsky report at bugs.python.org
Mon Nov 1 19:55:37 CET 2010


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

On Mon, Nov 1, 2010 at 2:09 PM, Antoine Pitrou <report at bugs.python.org> wrote:
..
> The problem is time.clock(), since it does two wildly different things
> depending on the OS.
> I would suggest to deprecate time.clock() at the same time as we add
> time.wallclock(). For the Unix-specific definition of time.clock(),
> there is already os.times() (which gives even richer information).

+1, but doing something like that should be discussed on python-ideas
first.  We should also weigh this against other proposals such as
exposing gettimeofday.

----------

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


More information about the Python-bugs-list mailing list