Home
last modified time | relevance | path

Searched refs:TimeNanos (Results 1 – 13 of 13) sorted by relevance

/external/perfetto/include/perfetto/base/
Dtime.h43 using TimeNanos = std::chrono::nanoseconds; variable
45 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 …]
/external/perfetto/src/base/
Dtime.cc31 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()
Dtime_unittest.cc27 TimeNanos ns = GetWallTimeNs(); in TEST()
62 if (elapsed > TimeNanos(20 * ns_in_ms)) in TEST()
/external/webrtc/webrtc/base/
Dprofiler.cc53 current_start_time_ = TimeNanos(); in Start()
81 Stop(TimeNanos()); in Stop()
117 uint64_t stop_time = TimeNanos(); in StopEvent()
Dtimeutils.cc37 uint64_t TimeNanos() { in TimeNanos() function
82 return static_cast<uint32_t>(TimeNanos() / kNumNanosecsPerMillisec); in Time()
86 return static_cast<uint64_t>(TimeNanos() / kNumNanosecsPerMicrosec); in TimeMicros()
Dtiming.cc68 return (static_cast<double>(TimeNanos()) / kNumNanosecsPerSec); in TimerNow()
Dtimeutils.h42 uint64_t TimeNanos();
Drtccertificate_unittests.cc48 return TimeNanos() / kNumNanosecsPerSec; in NowSeconds()
/external/perfetto/src/trace_processor/
Dtrace_processor_impl.cc338 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()
Dtrace_processor_shell.cc257 base::TimeNanos t_start) { in PrintQueryResultInteractively()
258 base::TimeNanos t_end = t_start; in PrintQueryResultInteractively()
342 base::TimeNanos t_start = base::GetWallTimeNs(); in StartInteractiveShell()
Dtrace_storage.h815 base::TimeNanos start_ns_;
/external/perfetto/tools/busy_threads/
Dbusy_threads.cc34 base::TimeNanos start = base::GetWallTimeNs(); in BusyWait()
/external/webrtc/talk/app/webrtc/objc/
Davfoundationvideocapturer.mm408 int64_t currentTime = rtc::TimeNanos();