Last active
September 15, 2019 22:13
-
-
Save OdinsPlasmaRifle/b9bd2e99aef20d51be031b2412d7345c to your computer and use it in GitHub Desktop.
Snippet for Timing Python Code
This file contains 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.process_time() | |
# Timed code. | |
print("Duration:", time.process_time() - start_time, "seconds") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment