User Tools

Site Tools


python_timeit

This is an old revision of the document!


how long does a snippet take?

$ python -m timeit -n 3 "from time import sleep; sleep(4)"
3 loops, best of 5: 4 sec per loop

Ref:- https://realpython.com/python-sleep/

python_timeit.1626897429.txt.gz · Last modified: 2021/07/21 19:57 by raju