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 <sbrivio(a)redhat.com>
Reviewed-by: David Gibson <david(a)gibson.dropbear.id.au>
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