Python Program to Measure the Elapsed Time in Python (Using time module)

bookmark

import time

start = time.time()

print(23*2.3)

end = time.time()
print(end - start)

 

Output

52.9
3.600120544433594e-05