Skip to content

Instantly share code, notes, and snippets.

@shimo164
Last active September 7, 2018 13:57
Show Gist options
  • Select an option

  • Save shimo164/7f358988f2b607ce681ca05f94e42768 to your computer and use it in GitHub Desktop.

Select an option

Save shimo164/7f358988f2b607ce681ca05f94e42768 to your computer and use it in GitHub Desktop.
Python snippet to get elapsed time
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