import time start_time = time.time() #your program print ("My program took", time.time() - start_time, "to run")