import time start = time.time() # your code stop = time.time() print("The time of the run:", stop - start)