Created
October 4, 2016 08:56
-
-
Save nvdv/b23c035d10a8f80d220bf9b2ac108988 to your computer and use it in GitHub Desktop.
How profilers work - timer
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.time() | |
primes = get_primes(1000) | |
total_time = time.time() - start_time | |
print("Total time is %f s" % total_time) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment