timestamp resolution
Robin Jarry
rjarry at redhat.com
Thu May 21 12:00:10 CEST 2026
Hi Morten,
Morten Brørup, May 21, 2026 at 11:54:
> Digging deeper into Grout's inner workings...
>
> I noticed that the timestamp fields of both the MAC FDB (gr_fdb_entry->last_seen) and the Connection Tracking table (gr_conntrack->last_update) have very high resolution: clock_t is microseconds.
>
> If they are only used for aging, one second would suffice: time_t is seconds.
>
> Was there some other reason for the extremely high resolution timestamps?
No specific reason, we don't need higher precision than the second. We
could use time_t but it is a signed integer. I wanted an unsigned one to
avoid any confusion.
--
Robin
> Motorized vehicles only.
More information about the grout
mailing list