As I understand on Linux starting point for CLOCK_MONOTONIC
is boot time. In my current work I prefer to use monotonic clock instead of CLOCK_REALTIME
CLOCK_MONOTONIC
is generally not affected by any adjustments to system time. For example, if the system clock is adjusted via NTP, CLOCK_MONOTONIC
has no way of knowing (nor does it need to).
For this reason, don't use CLOCK_MONOTONIC
if you need human-readable timestamps.
See Difference between CLOCK_REALTIME and CLOCK_MONOTONIC? for a discussion.