python measure how long program took 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")