X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftimer%2Ftimer.h;fp=ccan%2Ftimer%2Ftimer.h;h=e678f7f7dfcbf78274e89ecbefcdc8e320992f0b;hb=c951c9d9d730ee021eb76e7d87301b0634e0147d;hp=7a9fb07518a880c3097c5e99d388bddc14d82346;hpb=63f770591286a5a61ef2857377eeab5e0e75d115;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]; };