I am using the timeit.timeit
function to time one of my own functions, but the time returned is in scientific notation.
import timeit
def func():
...
print(timeit.timeit(stmt="func()", setup="from __main__ import func", number=100000)/100000)
This returns something like 3.563012266666666e-05
. I have used timeit
before, but this has never happened. Anyone know why it is doing this?