DEV Community

How to calculate execution time in python

Free Python Code on September 05, 2023

code import time def test(): for i in range(100): print(i) time.sleep(1) # starting time start = time.time()...
Collapse
 
lucksinia profile image
Lucksinia

No timeit... anything? Seriously?