[Python-ideas] Timer that starts as soon as it is imported
Chris Angelico
rosuav at gmail.com
Tue May 26 20:21:01 CEST 2015
On Wed, May 27, 2015 at 4:05 AM, anatoly techtonik <techtonik at gmail.com> wrote:
>> -- if it could be reset and restarted at need -- why not start it
>> manually in the first place?
>
> Current ways of measuring script run-time are not cross-platform or
> not memorizable. I have to reinvent timer code a couple of times, and
> that's not convenient for the code that is only relevant while debugging.
Sounds to me like something that doesn't belong in the stdlib, but
makes a great utility module for private use.
ChrisA
More information about the Python-ideas
mailing list