bpo-41710: gc_collect_main() uses _PyTime_GetPerfCounter() (GH-28676)
If the DEBUG_STATS debug flag is set, gc_collect_main() now uses _PyTime_GetPerfCounter() instead of _PyTime_GetMonotonicClock() to measure the elapsed time. On Windows, _PyTime_GetMonotonicClock() only has a resolution of 15.6 ms, whereas _PyTime_GetPerfCounter() is closer to a resolution of 100 ns.
V
Victor Stinner committed
54957f16a63ecb6b15f77b01fa7c55ada892604a
Parent: 98d2827
Committed by GitHub <noreply@github.com>
on 10/1/2021, 11:29:00 AM