Lines Matching defs:now_ns
455 int64_t last_val, next_val, interval, remainder, now_ns;
506 now_ns = timespec2ns(now);
510 KASSERT(now_ns >= 0);
530 * - If now_ns < last_val -- which happens iff backwards, i.e.,
534 * that is not earlier than now_ns. We will advance this by
536 * interval to find the earliest value _after_ now_ns.
538 * - If now_ns > last_val -- which happens iff !backwards,
541 * later than now_ns. We will always advance this by one
542 now_ns.
545 * (now_ns == last_val is not possible at this point because it
550 KASSERT(last_val != now_ns);
551 remainder = (now_ns - last_val) % interval;
552 next_val = now_ns - remainder;
557 * the interval, so next_val = now_ns, don't demand to
563 KASSERT(now_ns < last_val);
564 KASSERT(next_val == now_ns);
574 * not later than now_ns. Count the number of full
577 * between next_val and now_ns, as the number of