Lines Matching full:elapsed
62 /* time elapsed since the last theoretical expiration */ in update_expiration()
63 int64_t elapsed = (now - w->expiration) % period; in update_expiration() local
65 int64_t remaining = period - elapsed; in update_expiration()
125 * @elapsed: if non-NULL, the elapsed time (in ns) within the current
128 static void check_expirations(TimedAverage *ta, uint64_t *elapsed) in check_expirations() argument
151 /* Calculate the elapsed time within the current window */ in check_expirations()
152 if (elapsed) { in check_expirations()
154 *elapsed = ta->period - remaining; in check_expirations()
224 * @elapsed: if non-NULL, the elapsed time (in ns) will be stored here
227 uint64_t timed_average_sum(TimedAverage *ta, uint64_t *elapsed) in timed_average_sum() argument
230 check_expirations(ta, elapsed); in timed_average_sum()