Lines Matching refs:now_ns
378 uint64_t now_cycles, uint64_t now_ns, uint64_t delta_cycles,
402 uint64_t now_ns = GetCurrentTimeNanosFromKernel(last_now_cycles, &now_cycles); in GetCurrentTimeNanosSlowPath() local
424 UpdateLastSample(now_cycles, now_ns, delta_cycles, &sample); in GetCurrentTimeNanosSlowPath()
435 static uint64_t UpdateLastSample(uint64_t now_cycles, uint64_t now_ns, in UpdateLastSample() argument
439 uint64_t estimated_base_ns = now_ns; in UpdateLastSample()
447 sample->raw_ns + static_cast<uint64_t>(5) * 1000 * 1000 * 1000 < now_ns || in UpdateLastSample()
448 now_ns < sample->raw_ns || now_cycles < sample->base_cycles) { in UpdateLastSample()
450 last_sample.raw_ns.store(now_ns, std::memory_order_relaxed); in UpdateLastSample()
456 } else if (sample->raw_ns + 500 * 1000 * 1000 < now_ns && in UpdateLastSample()
475 uint64_t ns = now_ns - sample->raw_ns; in UpdateLastSample()
481 int64_t diff_ns = now_ns - estimated_base_ns; // estimate low by this much in UpdateLastSample()
508 estimated_base_ns = now_ns; in UpdateLastSample()
511 last_sample.raw_ns.store(now_ns, std::memory_order_relaxed); in UpdateLastSample()