python print how long it takes to run

Solutions on MaxInterview for python print how long it takes to run by the best coders in the world

showing results for - "python print how long it takes to run"
Philomena
25 Aug 2018
1import time
2start_time = time.time()
3 #your program
4print ("My program took", time.time() - start_time, "to run")
5