Home
last modified time | relevance | path

Searched refs:delta (Results 1 – 3 of 3) sorted by path

/unit/src/
H A Dnxt_thread_time.c198 nxt_nsec_t delta; in nxt_thread_realtime_update() local
207 delta = 1000000 - now->realtime.nsec % 1000000; in nxt_thread_realtime_update()
208 now->update = now->monotonic + delta; in nxt_thread_realtime_update()
219 delta = 1000000000 - now->realtime.nsec; in nxt_thread_realtime_update()
220 now->update = now->monotonic + delta; in nxt_thread_realtime_update()
H A Dnxt_time.c224 nxt_nsec_int_t delta; in nxt_monotonic_time() local
238 delta = current - now->previous; in nxt_monotonic_time()
241 if (delta > 0) { in nxt_monotonic_time()
242 now->monotonic += delta; in nxt_monotonic_time()
H A Dnxt_timer.c231 int32_t delta; in nxt_timer_find() local
267 delta = nxt_msec_diff(time, timers->now); in nxt_timer_find()
269 return (nxt_msec_t) nxt_max(delta, 0); in nxt_timer_find()