python print how long it takes to run

53

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")

Comments

Submit
0 Comments