On Thu, 25 Jul 2024 13:35:25 +1000
David Gibson
On Wed, Jul 24, 2024 at 11:50:11PM +0200, Stefano Brivio wrote:
...not just for debug messages. Otherwise, timestamps in the log file are consistent but the starting point is not zero.
Do this right away as we enter main(), so that the resulting timestamps are as closely as possible relative to when we start.
Signed-off-by: Stefano Brivio
Reviewed-by: David Gibson
It does occur to me, though... when we're using relative timestamps, should we be using the monotonic clock instead of the realtime clock?
Right, yes, I was under the impression that we could risk mixing those with packet capture timestamps (where we want the realtime clock), but actually it's never the case. I'll post another patch for that. -- Stefano