Last active
September 7, 2018 13:57
-
-
Save shimo164/7f358988f2b607ce681ca05f94e42768 to your computer and use it in GitHub Desktop.
Python snippet to get elapsed time
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
| import time | |
| start_time = time.time() | |
| # write some code that you want to know time | |
| elapsed_time = time.time() - start_time | |
| print("elapsed time: {}".format(elapsed_time) + "[sec]") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment