[issue5441] Convenience API for timeit.main

2018-03-14 Thread Jeremy Metz
Jeremy Metz added the comment: More specifically, #6422 also mentions at least in part this functionality, but the main focus there seems to be the autorange function. Propose splitting these two by reopening this use. -- ___ Python tracker

[issue5441] Convenience API for timeit.main

2018-03-14 Thread Jeremy Metz
Jeremy Metz 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