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.