how to keep track of how long program runs in python code example
Example: python print how long it takes to run
import time
start_time = time.time()
#your program
print ("My program took", time.time() - start_time, "to run")
import time
start_time = time.time()
#your program
print ("My program took", time.time() - start_time, "to run")