Home
last modified time | relevance | path

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

12

/external/perfetto/include/perfetto/base/
Dtime.h44 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/
Dtime.cc33 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()
Dtime_unittest.cc27 TimeNanos ns = GetWallTimeNs(); in TEST()
63 if (elapsed > TimeNanos(20 * ns_in_ms)) in TEST()
/external/webrtc/rtc_base/
Dtime_utils_unittest.cc225 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()
Dfake_clock.h36 int64_t TimeNanos() const override;
52 int64_t TimeNanos() const override { return clock_.TimeNanos(); } in TimeNanos() function
Dtime_utils.cc203 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()
Dtime_utils.h38 virtual int64_t TimeNanos() const = 0;
85 RTC_EXPORT int64_t TimeNanos();
Dfake_clock.cc18 int64_t FakeClock::TimeNanos() const { in TimeNanos() function in rtc::FakeClock
Drtc_certificate_unittest.cc50 uint64_t NowSeconds() const { return TimeNanos() / kNumNanosecsPerSec; } in NowSeconds()
/external/webrtc/common_audio/resampler/
Dsinc_resampler_unittest.cc111 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()
Dpush_sinc_resampler_unittest.cc89 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/
Dvideo_capture_impl.cc78 _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/
Drtp_streams_synchronizer.cc45 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()
Dvideo_stream_encoder_unittest.cc4401 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/
Diterator_impl.cc42 base::TimeNanos t_end = base::GetWallTimeNs(); in ~IteratorImpl()
50 base::TimeNanos t_first_next = base::GetWallTimeNs(); in RecordFirstNextInSqlStats()
Dtrace_processor_shell.cc430 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/
Dperfetto_cmd_android.cc97 base::TimeNanos start = base::GetThreadCPUTimeNs(); in SaveOutputToIncidentTraceOrCrash()
112 base::TimeNanos now = base::GetThreadCPUTimeNs(); in SaveOutputToIncidentTraceOrCrash()
/external/webrtc/modules/desktop_capture/win/
Dscreen_capturer_win_gdi.cc75 int64_t capture_start_time_nanos = rtc::TimeNanos(); in CaptureFrame()
95 frame->set_capture_time_ms((rtc::TimeNanos() - capture_start_time_nanos) / in CaptureFrame()
Dscreen_capturer_win_directx.cc122 int64_t capture_start_time_nanos = rtc::TimeNanos(); in CaptureFrame()
172 frame->set_capture_time_ms((rtc::TimeNanos() - capture_start_time_nanos) / in CaptureFrame()
Dscreen_capturer_win_magnifier.cc85 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/
Dtimestamp_aligner.cc22 return rtc::TimeNanos(); in JNI_TimestampAligner_RtcTimeNanos()
/external/webrtc/modules/video_coding/codecs/test/
Dvideoprocessor.cc287 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/
Ddesktop_capturer_differ_wrapper.cc192 int64_t start_time_nanos = rtc::TimeNanos(); in OnCaptureResult()
221 (rtc::TimeNanos() - start_time_nanos) / in OnCaptureResult()
/external/webrtc/modules/desktop_capture/linux/
Dscreen_capturer_x11.cc228 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/
Daudio_processing_simulator.cc94 : start_time_(rtc::TimeNanos()), in ScopedTimer()
99 api_call_statistics_->Add(rtc::TimeNanos() - start_time_, call_type_); in ~ScopedTimer()

12