Jeremy Metz <metz...@gmail.com> added the comment:

Don't understand how #6422 addresses this - would also like to see a more 
convenient API for timing; at present CLI gives a nice formatted output, and 
timeit.timeit gives just the raw timing in seconds. 

Would be easy to implement by simply refactoring main() in to the command line 
parsing component (first ~ 50 lines from 
https://github.com/python/cpython/blob/master/Lib/timeit.py#L256 to 
~https://github.com/python/cpython/blob/master/Lib/timeit.py#L312 ) and actual 
timing and printing component, which could then be called via API. 

Am happy to work this up if this can be reopened...?

----------
nosy: +Jeremy Metz

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue5441>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to