This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Julian.Gindi
Recipients Julian.Gindi, georg.brandl, jstasiak, pitrou, serhiy.storchaka, tim.peters
Date 2013-11-26.22:33:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385505220.54.0.307382664928.issue18983@psf.upfronthosting.co.za>
In-reply-to
Content
I created a patch that allows users to specify a time unit output using the "-u" flag. Example usage:

python -m timeit -u "msec" '"-".join(str(n) for n in range(100))'
>> 10000 loops, best of 3: 0.156 msec per loop

python -m timeit -u "sec" '"-".join(str(n) for n in range(100))'
>> 10000 loops, best of 3: 0.000159 sec per loop

You can specify msec, sec, or usec. I am also interested in having a JSON option as mentioned by Antoine. Any thoughts?
History
Date User Action Args
2013-11-26 22:33:40Julian.Gindisetrecipients: + Julian.Gindi, tim.peters, georg.brandl, pitrou, serhiy.storchaka, jstasiak
2013-11-26 22:33:40Julian.Gindisetmessageid: <1385505220.54.0.307382664928.issue18983@psf.upfronthosting.co.za>
2013-11-26 22:33:40Julian.Gindilinkissue18983 messages
2013-11-26 22:33:40Julian.Gindicreate