At the first glance, Python documentation at https://docs.python.org/3.10/library/timeit.html# suggests that the time units returned by timeit
with default parameters are the ones of the default timer time.perf_counter()
, which are fractional seconds
. I couldn't find anything to the contrary on that page, but a simple test:
>>> timeit('3**2')
0.007580029021482915
suggests usec
. What have I missed?