3 ms·
perf_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_cou
by formerly_proven 6y ago
perf_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.