How do you calculate program run time in python? -
this question has answer here:
- how time of python program's execution? 19 answers
how calculate program run time in python?
you might want take @ timeit module:
http://docs.python.org/library/timeit.html
or profile module:
http://docs.python.org/library/profile.html
there additionally nice tutorials here:
http://www.doughellmann.com/pymotw/profile/index.html
http://www.doughellmann.com/pymotw/timeit/index.html
and time module might come in handy, although prefer later 2 recommendations benchmarking , profiling code performance:
Comments
Post a Comment