Hello,

Currently the timestamp for logs is a 64 bit value which comes from a 32 bit 
os_time counter. This counter counts ticks as opposed to seconds since boot or 
UTC timestamp. These are 1 ms ticks and so will rollover in 49 days. We have an 
API os_get_timeofday() which fills up a structure with UTC timestamp in seconds 
and microseconds since the last second.

I am going to change the log structure so that it stores both(UTC timestamp in 
seconds - 64 bit, Microseconds since last second - 32 bit)

This way looking at the logs we get a good resolution for time and also, we 
don’t have to worry about rollovers. Is everyone fine with this change ?

Regards,
Vipul Rahane 

Reply via email to