Petr Pisar
2013-09-25 11:10:32 UTC
Hello,
The GNU time as well as bash built-in compute real time process usage as
a simple difference between two real time points. If there was a time
adjustement in between (by NTP or manual), the meassured value would be
affected.
I have found any hint nowhere if this is intended behavior or if one should
meassure some kind of monotic time line.
Is there any general agreement? My personal opinion is that monotonic
clock_gettime(CLOCK_MONOTONIC_RAW) is the best option.
-- Petr
The GNU time as well as bash built-in compute real time process usage as
a simple difference between two real time points. If there was a time
adjustement in between (by NTP or manual), the meassured value would be
affected.
I have found any hint nowhere if this is intended behavior or if one should
meassure some kind of monotic time line.
Is there any general agreement? My personal opinion is that monotonic
clock_gettime(CLOCK_MONOTONIC_RAW) is the best option.
-- Petr