2 ms·
I think you're right if you are actually able to get ms or μs but as far as I know the unit your getting most of the time in python is second.
by barbazoo 6y ago
I think you're right if you are actually able to get ms or μs but as far as I know the unit your getting most of the time in python is second.
- formerly_proven 6y agoperf_counter generally has nanosecond-ish resolution, but it gives you a float with seconds so you can just drop it in instead of time or other timers (perf_counter is like two decades more recent than time.time()). Newer Pythons have xxx_ns variants that give you an int instead.