8 Sep
2025
8 Sep
'25
5:28 p.m.
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.
Which BSDs? As far as I can see, FreeBSD seems to include suspend time, and NetBSD doesn't have this clock. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8916#note_115341