[PATCH] ntdll: Fix tick count calculation on Linux and Mac.
huw at codeweavers.com
Mon Nov 25 02:54:15 CST 2019
On Sun, Nov 24, 2019 at 07:39:58PM -0600, Chip Davis wrote:
> Based on a patch by Andrew Eikum.
> Linux's CLOCK_MONOTONIC(_RAW) and macOS's mach_absolute_time all stop
> counting when the computer goes to sleep/suspend/hibernate/etc. However,
> Windows's GetTickCount does not stop counting. Linux's CLOCK_BOOTTIME
> matches Windows's behavior, as does macOS's mach_continuous_time.
However, CLOCK_BOOTTIME is changed by adjtime(3) which GetTickCount()
shouldn't be. I guess what we really want is a CLOCK_BOOTTIME_RAW...
More information about the wine-devel