Reddit Python 3 Time A Python Program
import time
start = time.time()
#the rest of your code
print '{0:.2f} seconds elapsed.'.format(time.time()-start)
Glorious Gaur
import time
start = time.time()
#the rest of your code
print '{0:.2f} seconds elapsed.'.format(time.time()-start)