7 Sep
2025
7 Sep
'25
3:47 a.m.
This now accounts for system suspend periods on Linux, similar to how native win32 ticks work. On macOS `mach_continuous_time` already does so. On BSDs (and other POSIX compliant operating systems) `CLOCK_MONOTONIC` likewise includes suspend time. However they also provide a `CLOCK_BOOTTIME`, which does *not* include suspend time, hence the added `__linux__` check there. See https://lkml.org/lkml/2020/5/8/1707 -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8916