Skip to content

Instantly share code, notes, and snippets.

@OdinsPlasmaRifle
Last active September 15, 2019 22:13
Show Gist options
  • Save OdinsPlasmaRifle/b9bd2e99aef20d51be031b2412d7345c to your computer and use it in GitHub Desktop.
Save OdinsPlasmaRifle/b9bd2e99aef20d51be031b2412d7345c to your computer and use it in GitHub Desktop.
Snippet for Timing Python Code
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