• Victor Stinner's avatar
    bpo-31773: _PyTime_GetPerfCounter() uses _PyTime_t (GH-3983) · bdaeb7d2
    Victor Stinner yazdı
    * 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).
    bdaeb7d2
pytime.c 24.5 KB