Created
June 1, 2016 15:11
-
-
Save krvajal/436116d74850df4ca731db8939917c6c to your computer and use it in GitHub Desktop.
timer from python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from timeit import default_timer as timer | |
start = timer() | |
# long operation here | |
duration = timer() - start | |
print "Duration", duration |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment