Searched refs:kNanosPerSecond (Results 1 – 2 of 2) sorted by relevance
10 constexpr int64_t kNanosPerSecond = 1000000000ll; variable28 int64_t ns = kNanosPerSecond * (int64_t)t.tv_sec + (int64_t)t.tv_nsec; in GetSystemClockNs()34 int64_t ns = kNanosPerSecond * (int64_t)t.tv_sec + (int64_t)t.tv_nsec; in GetSystemClockRawNs()39 return nanoseconds / static_cast<double>(kNanosPerSecond); in NsToSec()52 t.tv_sec = ns / kNanosPerSecond; in NsToTimespec()53 remainder = ns % kNanosPerSecond; in NsToTimespec()56 remainder += kNanosPerSecond; in NsToTimespec()
69 constexpr uint64_t kNanosPerSecond = 1000000000llu; variable74 return kNanosPerSecond * t.tv_sec + t.tv_nsec; in GetClockNs()119 return static_cast<double>(cpu_time_ns_) / kNanosPerSecond; in cpu_time_s()122 return static_cast<double>(wait_ns_) / kNanosPerSecond; in wait_s()798 if (iteration_delta_ns > (kNanosPerSecond / 100)) { in ClientCommand()803 kNanosPerSecond) in ClientCommand()814 kNanosPerSecond; in ClientCommand()879 static_cast<double>(total_time_ns) / kNanosPerSecond; in ClientCommand()887 static_cast<double>(min_sample_time_ns) / kNanosPerSecond; in ClientCommand()892 static_cast<double>(max_sample_time_ns) / kNanosPerSecond; in ClientCommand()[all …]