bpo-31773: _PyTime_GetPerfCounter() uses _PyTime_t (GH-3983)
* Rewrite win_perf_counter() to only use integers internally. * Add _PyTime_MulDiv() which compute "ticks * mul / div" in two parts (int part and remaining) to prevent integer overflow. * Clock frequency is checked at initialization for integer overflow. * Enhance also pymonotonic() to reduce the precision loss on macOS (mach_absolute_time() clock).
V
Victor Stinner committed
bdaeb7d237462a629e6c85001317faa85f94a0c6
Parent: 0df1905
Committed by GitHub <noreply@github.com>
on 10/16/2017, 3:44:31 PM