X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftimer%2Ftimer.h;h=e678f7f7dfcbf78274e89ecbefcdc8e320992f0b;hb=61c38f61b8a40dbd8fe48b7510e00cfcc5379378;hp=7a9fb07518a880c3097c5e99d388bddc14d82346;hpb=a9d42b8d3bf2b37f47caa428e869fceb4bb33082;p=ccan diff --git a/ccan/timer/timer.h b/ccan/timer/timer.h index 7a9fb075..e678f7f7 100644 --- a/ccan/timer/timer.h +++ b/ccan/timer/timer.h @@ -165,8 +165,12 @@ void timers_dump(const struct timers *timers, FILE *fp); struct timers { /* Far in the future. */ struct list_head far; + /* Current time. */ uint64_t base; + /* Overall first value. */ uint64_t first; + /* First value in each level (plus 1 for far list) */ + uint64_t firsts[(64 + TIMER_LEVEL_BITS-1) / TIMER_LEVEL_BITS + 1]; struct timer_level *level[(64 + TIMER_LEVEL_BITS-1) / TIMER_LEVEL_BITS]; };