© 2004-20

Simple Timer

There are a number of ways to calculate the execution time of a script
using the time.time method is one of the simplest and most effective timers.

import time
timeStart = time.time()
calc = 0
for i in range(5):
	calc += i**calc
timeEnd = time.time()
print("Your code took {:0.8f} seconds to execute".format(timeEnd-timeStart))