time track python
import timeit start = timeit.timeit() print("hello") end = timeit.timeit() print(end - start)
Source: stackoverflow.com
python track time
from timeit import default_timer as timer start = timer() # ... end = timer() print(end - start) # Time in seconds, e.g. 5.38091952400282
Source: stackoverflow.com