I came across the timer.cpp and noticed that CLOCK_REALTIME is sued for the first parameter of clock_gettime system function. According to the clock_gettime manual, it's better to use CLOCK_MONOTONIC_RAW to do the measurement, as it isn't affected by either adjtime or NTP.
I came across the timer.cpp and noticed that CLOCK_REALTIME is sued for the first parameter of clock_gettime system function. According to the clock_gettime manual, it's better to use CLOCK_MONOTONIC_RAW to do the measurement, as it isn't affected by either adjtime or NTP.