Benchmarking the CPU time of a python program in Windows 64-bit
I need to get the CPU run time of my python application.
How to measure execution time of command in windows command line?
I came across the above thread earlier and learned about timeit. However, according to the download website, timeit is not supported 开发者_如何学Pythonin 64-bit Windows.
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=17657#top
time.clock() does not give CPU time in Windows.
Is there any easy way to get the CPU time of my python application?
If you're doing this just to profile or benchmark your code, don't building your own, use a built in library.
http://docs.python.org/library/profile.html
精彩评论