[Python-ideas] time.wallclock() or other similar stuff

geremy condra debatem1 at gmail.com
Mon Nov 8 21:10:36 CET 2010


On Tue, Nov 2, 2010 at 6:17 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> 2010/11/2 M.-A. Lemburg <mal at egenix.com>:
>> You might want to look at the systimes.py module that comes with pybench
>> (see Tools/pybench). This already provides a cross-platform way of
>> accessing high accuracy timers for benchmarking and the like.
>>
>> For obvious reasons this tries to measure run-time, though, and not
>> elapsed time.
>
> I think MAL answered the naming question without even realising it:
>
> time.elapsed_time(start_time=0)

+1 from me.

Geremy Condra



More information about the Python-ideas mailing list