On 05/09/2025 18:07, John Ogness wrote: > On 2025-09-05, Marc Gonzalez wrote: > >> Could you provide some insight as to why CLOCK_MONOTONIC is preferable? > > CLOCK_MONOTONIC is tracking in time units as defined by humans. > CLOCK_MONOTONIC_RAW is tracking in time units defined by some hardware. I'm not sure I understand what that implies. Eventually, clock_gettime stores whatever it measured in struct timespec, with tv_sec & tv_nsec, right? Are you saying that if I have 2 identical timespecs, one from CLOCK_MONOTONIC, one from CLOCK_MONOTONIC_RAW, they might not measure the same time interval? Are you perhaps saying that NTP can (ever so slightly) tweak a clock to bring its frequency closer to "reality", but if CLOCK_MONOTONIC_RAW ignores such tweaks, it might count time slightly too fast or too slow? Regards