bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

time: Should real time usage account discontinous jumps?


From: Petr Pisar
Subject: time: Should real time usage account discontinous jumps?
Date: Wed, 25 Sep 2013 13:10:32 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

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

Attachment: pgpMyTtoOetqY.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]