/external/perfetto/include/perfetto/base/ |
D | time.h | 44 using TimeNanos = std::chrono::nanoseconds; variable 46 inline TimeNanos FromPosixTimespec(const struct timespec& ts) { in FromPosixTimespec() 47 return TimeNanos(ts.tv_sec * 1000000000LL + ts.tv_nsec); in FromPosixTimespec() 54 TimeNanos GetWallTimeNs(); 55 TimeNanos GetThreadCPUTimeNs(); 58 inline TimeNanos GetBootTimeNs() { in GetBootTimeNs() 64 inline TimeNanos GetWallTimeNs() { in GetWallTimeNs() 72 return TimeNanos(mach_absolute_time() * monotonic_timebase_factor); in GetWallTimeNs() 76 inline TimeNanos GetBootTimeNs() { in GetBootTimeNs() 80 inline TimeNanos GetThreadCPUTimeNs() { in GetThreadCPUTimeNs() [all …]
|
/external/perfetto/src/base/ |
D | time.cc | 33 TimeNanos GetWallTimeNs() { in GetWallTimeNs() 40 return TimeNanos(static_cast<uint64_t>(elapsed_nanoseconds)); in GetWallTimeNs() 43 TimeNanos GetThreadCPUTimeNs() { in GetThreadCPUTimeNs() 52 return TimeNanos((kernel_time + user_time) * 100); in GetThreadCPUTimeNs()
|
D | time_unittest.cc | 27 TimeNanos ns = GetWallTimeNs(); in TEST() 63 if (elapsed > TimeNanos(20 * ns_in_ms)) in TEST()
|
/external/webrtc/rtc_base/ |
D | time_utils_unittest.cc | 225 EXPECT_EQ(987654000, TimeNanos()); in TEST() 235 EXPECT_EQ(0, clock.TimeNanos()); in TEST() 241 EXPECT_EQ(123000, clock.TimeNanos()); in TEST() 243 EXPECT_EQ(456000, clock.TimeNanos()); in TEST() 249 EXPECT_EQ(1000, clock.TimeNanos()); in TEST() 251 EXPECT_EQ(2223000, clock.TimeNanos()); in TEST() 253 EXPECT_EQ(3335223000, clock.TimeNanos()); in TEST() 255 EXPECT_EQ(4447335223000, clock.TimeNanos()); in TEST()
|
D | fake_clock.h | 36 int64_t TimeNanos() const override; 52 int64_t TimeNanos() const override { return clock_.TimeNanos(); } in TimeNanos() function
|
D | time_utils.cc | 203 int64_t TimeNanos() { in TimeNanos() function 205 return g_clock->TimeNanos(); in TimeNanos() 211 return static_cast<uint32_t>(TimeNanos() / kNumNanosecsPerMillisec); in Time32() 215 return TimeNanos() / kNumNanosecsPerMillisec; in TimeMillis() 219 return TimeNanos() / kNumNanosecsPerMicrosec; in TimeMicros() 305 return g_clock->TimeNanos() / kNumNanosecsPerMicrosec; in TimeUTCMicros()
|
D | time_utils.h | 38 virtual int64_t TimeNanos() const = 0; 85 RTC_EXPORT int64_t TimeNanos();
|
D | fake_clock.cc | 18 int64_t FakeClock::TimeNanos() const { in TimeNanos() function in rtc::FakeClock
|
D | rtc_certificate_unittest.cc | 50 uint64_t NowSeconds() const { return TimeNanos() / kNumNanosecsPerSec; } in NowSeconds()
|
/external/webrtc/common_audio/resampler/ |
D | sinc_resampler_unittest.cc | 111 int64_t start = rtc::TimeNanos(); in TEST() 115 (rtc::TimeNanos() - start) / rtc::kNumNanosecsPerMicrosec; in TEST() 183 int64_t start = rtc::TimeNanos(); in TEST() 190 (rtc::TimeNanos() - start) / rtc::kNumNanosecsPerMicrosec; in TEST() 201 start = rtc::TimeNanos(); in TEST() 208 (rtc::TimeNanos() - start) / rtc::kNumNanosecsPerMicrosec; in TEST() 214 start = rtc::TimeNanos(); in TEST() 221 (rtc::TimeNanos() - start) / rtc::kNumNanosecsPerMicrosec; in TEST()
|
D | push_sinc_resampler_unittest.cc | 89 int64_t start = rtc::TimeNanos(); in ResampleBenchmarkTest() 94 (rtc::TimeNanos() - start) / rtc::kNumNanosecsPerMicrosec; in ResampleBenchmarkTest() 99 start = rtc::TimeNanos(); in ResampleBenchmarkTest() 114 (rtc::TimeNanos() - start) / rtc::kNumNanosecsPerMicrosec; in ResampleBenchmarkTest()
|
/external/webrtc/modules/video_capture/ |
D | video_capture_impl.cc | 78 _lastProcessTimeNanos(rtc::TimeNanos()), in VideoCaptureImpl() 79 _lastFrameRateCallbackTimeNanos(rtc::TimeNanos()), in VideoCaptureImpl() 81 _lastProcessFrameTimeNanos(rtc::TimeNanos()), in VideoCaptureImpl() 252 _incomingFrameTimesNanos[0] = rtc::TimeNanos(); in UpdateFrameCount()
|
/external/webrtc/video/ |
D | rtp_streams_synchronizer.cc | 45 last_sync_time_(rtc::TimeNanos()), in RtpStreamsSynchronizer() 72 (rtc::TimeNanos() - last_sync_time_) / rtc::kNumNanosecsPerMillisec; in TimeUntilNextProcess() 77 last_sync_time_ = rtc::TimeNanos(); in Process()
|
D | video_stream_encoder_unittest.cc | 4401 int64_t timestamp_ms = fake_clock_.TimeNanos() / rtc::kNumNanosecsPerMillisec; in TEST_F() 4505 int64_t timestamp_ms = fake_clock_.TimeNanos() / rtc::kNumNanosecsPerMillisec; in TEST_F() 5007 int64_t timestamp_ms = fake_clock_.TimeNanos() / rtc::kNumNanosecsPerMillisec; in TEST_F() 5066 int64_t timestamp_ms = fake_clock_.TimeNanos() / rtc::kNumNanosecsPerMillisec; in TEST_F() 5148 int64_t timestamp_ms = fake_clock_.TimeNanos() / rtc::kNumNanosecsPerMillisec; in TEST_F() 5218 int64_t timestamp_ms = fake_clock_.TimeNanos() / rtc::kNumNanosecsPerMillisec; in TEST_F() 5422 fake_clock_.TimeNanos() / rtc::kNumNanosecsPerMillisec - in TEST_F() 5500 int64_t timestamp_ms = fake_clock_.TimeNanos() / rtc::kNumNanosecsPerMillisec; in TEST_F() 5508 timestamp_ms = fake_clock_.TimeNanos() / rtc::kNumNanosecsPerMillisec; in TEST_F() 5517 timestamp_ms = fake_clock_.TimeNanos() / rtc::kNumNanosecsPerMillisec; in TEST_F() [all …]
|
/external/perfetto/src/trace_processor/ |
D | iterator_impl.cc | 42 base::TimeNanos t_end = base::GetWallTimeNs(); in ~IteratorImpl() 50 base::TimeNanos t_first_next = base::GetWallTimeNs(); in RecordFirstNextInSqlStats()
|
D | trace_processor_shell.cc | 430 base::TimeNanos t_start, in PrintQueryResultInteractively() 432 base::TimeNanos t_end = t_start; in PrintQueryResultInteractively() 637 base::TimeNanos t_load, in PrintPerfFile() 638 base::TimeNanos t_run) { in PrintPerfFile() 1040 base::TimeNanos t_start = base::GetWallTimeNs(); in StartInteractiveShell() 1063 base::TimeNanos t_load{}; in TraceProcessorMain() 1065 base::TimeNanos t_load_start = base::GetWallTimeNs(); in TraceProcessorMain() 1088 base::TimeNanos t_query_start = base::GetWallTimeNs(); in TraceProcessorMain() 1100 base::TimeNanos t_query = base::GetWallTimeNs() - t_query_start; in TraceProcessorMain()
|
/external/perfetto/src/perfetto_cmd/ |
D | perfetto_cmd_android.cc | 97 base::TimeNanos start = base::GetThreadCPUTimeNs(); in SaveOutputToIncidentTraceOrCrash() 112 base::TimeNanos now = base::GetThreadCPUTimeNs(); in SaveOutputToIncidentTraceOrCrash()
|
/external/webrtc/modules/desktop_capture/win/ |
D | screen_capturer_win_gdi.cc | 75 int64_t capture_start_time_nanos = rtc::TimeNanos(); in CaptureFrame() 95 frame->set_capture_time_ms((rtc::TimeNanos() - capture_start_time_nanos) / in CaptureFrame()
|
D | screen_capturer_win_directx.cc | 122 int64_t capture_start_time_nanos = rtc::TimeNanos(); in CaptureFrame() 172 frame->set_capture_time_ms((rtc::TimeNanos() - capture_start_time_nanos) / in CaptureFrame()
|
D | screen_capturer_win_magnifier.cc | 85 int64_t capture_start_time_nanos = rtc::TimeNanos(); in CaptureFrame() 118 frame->set_capture_time_ms((rtc::TimeNanos() - capture_start_time_nanos) / in CaptureFrame()
|
/external/webrtc/sdk/android/src/jni/ |
D | timestamp_aligner.cc | 22 return rtc::TimeNanos(); in JNI_TimestampAligner_RtcTimeNanos()
|
/external/webrtc/modules/video_coding/codecs/test/ |
D | videoprocessor.cc | 287 const int64_t encode_start_ns = rtc::TimeNanos(); in ProcessFrame() 346 const int64_t encode_stop_ns = rtc::TimeNanos(); in FrameEncoded() 459 post_encode_time_ns_ += rtc::TimeNanos() - encode_stop_ns; in FrameEncoded() 469 const int64_t decode_stop_ns = rtc::TimeNanos(); in FrameDecoded() 543 frame_stat->decode_start_ns = rtc::TimeNanos(); in DecodeFrame()
|
/external/webrtc/modules/desktop_capture/ |
D | desktop_capturer_differ_wrapper.cc | 192 int64_t start_time_nanos = rtc::TimeNanos(); in OnCaptureResult() 221 (rtc::TimeNanos() - start_time_nanos) / in OnCaptureResult()
|
/external/webrtc/modules/desktop_capture/linux/ |
D | screen_capturer_x11.cc | 228 int64_t capture_start_time_nanos = rtc::TimeNanos(); in CaptureFrame() 267 result->set_capture_time_ms((rtc::TimeNanos() - capture_start_time_nanos) / in CaptureFrame()
|
/external/webrtc/modules/audio_processing/test/ |
D | audio_processing_simulator.cc | 94 : start_time_(rtc::TimeNanos()), in ScopedTimer() 99 api_call_statistics_->Add(rtc::TimeNanos() - start_time_, call_type_); in ~ScopedTimer()
|