Searched refs:TimeNanos (Results 1 – 13 of 13) sorted by relevance
43 using TimeNanos = std::chrono::nanoseconds; variable45 inline TimeNanos FromPosixTimespec(const struct timespec& ts) { in FromPosixTimespec()46 return TimeNanos(ts.tv_sec * 1000000000LL + ts.tv_nsec); in FromPosixTimespec()53 TimeNanos GetWallTimeNs();54 TimeNanos GetThreadCPUTimeNs();57 inline TimeNanos GetBootTimeNs() { in GetBootTimeNs()63 inline TimeNanos GetWallTimeNs() { in GetWallTimeNs()71 return TimeNanos(mach_absolute_time() * monotonic_timebase_factor); in GetWallTimeNs()75 inline TimeNanos GetBootTimeNs() { in GetBootTimeNs()79 inline TimeNanos GetThreadCPUTimeNs() { in GetThreadCPUTimeNs()[all …]
31 TimeNanos GetWallTimeNs() { in GetWallTimeNs()37 return TimeNanos(static_cast<uint64_t>(elapsed_nanoseconds)); in GetWallTimeNs()40 TimeNanos GetThreadCPUTimeNs() { in GetThreadCPUTimeNs()49 return TimeNanos((kernel_time + user_time) * 100); in GetThreadCPUTimeNs()
27 TimeNanos ns = GetWallTimeNs(); in TEST()62 if (elapsed > TimeNanos(20 * ns_in_ms)) in TEST()
53 current_start_time_ = TimeNanos(); in Start()81 Stop(TimeNanos()); in Stop()117 uint64_t stop_time = TimeNanos(); in StopEvent()
37 uint64_t TimeNanos() { in TimeNanos() function82 return static_cast<uint32_t>(TimeNanos() / kNumNanosecsPerMillisec); in Time()86 return static_cast<uint64_t>(TimeNanos() / kNumNanosecsPerMicrosec); in TimeMicros()
68 return (static_cast<double>(TimeNanos()) / kNumNanosecsPerSec); in TimerNow()
42 uint64_t TimeNanos();
48 return TimeNanos() / kNumNanosecsPerSec; in NowSeconds()
338 base::TimeNanos t_start = base::GetWallTimeNs(); in ExecuteQuery()382 base::TimeNanos t_end = base::GetWallTimeNs(); in ~IteratorImpl()393 base::TimeNanos t_first_next = base::GetWallTimeNs(); in RecordFirstNextInSqlStats()
257 base::TimeNanos t_start) { in PrintQueryResultInteractively()258 base::TimeNanos t_end = t_start; in PrintQueryResultInteractively()342 base::TimeNanos t_start = base::GetWallTimeNs(); in StartInteractiveShell()
815 base::TimeNanos start_ns_;
34 base::TimeNanos start = base::GetWallTimeNs(); in BusyWait()
408 int64_t currentTime = rtc::TimeNanos();