Home
last modified time | relevance | path

Searched refs:elapsed_time (Results 1 – 19 of 19) sorted by relevance

/system/core/metricsd/
Dtimer_test.cc79 base::TimeDelta elapsed_time; in TEST_F() local
80 ASSERT_TRUE(timer_.GetElapsedTime(&elapsed_time)); in TEST_F()
82 elapsed_time.InMilliseconds()); in TEST_F()
123 base::TimeDelta elapsed_time; in TEST_F() local
124 ASSERT_TRUE(timer_.GetElapsedTime(&elapsed_time)); in TEST_F()
126 elapsed_time.InMilliseconds()); in TEST_F()
138 base::TimeDelta elapsed_time = timer_.elapsed_time_; in TEST_F() local
140 ASSERT_TRUE(elapsed_time == timer_.elapsed_time_); in TEST_F()
144 base::TimeDelta elapsed_time; in TEST_F() local
145 ASSERT_FALSE(timer_.GetElapsedTime(&elapsed_time)); in TEST_F()
[all …]
Dtimer.cc88 bool Timer::GetElapsedTime(base::TimeDelta* elapsed_time) const { in GetElapsedTime()
89 if (start_time_.is_null() || !elapsed_time) in GetElapsedTime()
91 *elapsed_time = elapsed_time_; in GetElapsedTime()
93 *elapsed_time += clock_wrapper_->GetCurrentTime() - start_time_; in GetElapsedTime()
109 base::TimeDelta elapsed_time; in ReportMilliseconds() local
110 if (!metrics_lib_ || !GetElapsedTime(&elapsed_time)) return false; in ReportMilliseconds()
112 elapsed_time.InMilliseconds(), in ReportMilliseconds()
/system/extras/crypto-perf/
Dcrypto.cpp118 struct timeval begin_time, end_time, elapsed_time; in main() local
132 timersub(&end_time, &begin_time, &elapsed_time); in main()
134 elapsed_time.tv_sec * USEC_PER_SEC + elapsed_time.tv_usec); in main()
139 (elapsed_time.tv_sec * USEC_PER_SEC + elapsed_time.tv_usec)); in main()
143 ((elapsed_time.tv_sec * USEC_PER_SEC + elapsed_time.tv_usec) * in main()
155 timersub(&end_time, &begin_time, &elapsed_time); in main()
157 elapsed_time.tv_sec * USEC_PER_SEC + elapsed_time.tv_usec); in main()
162 (elapsed_time.tv_sec * USEC_PER_SEC + elapsed_time.tv_usec)); in main()
166 ((elapsed_time.tv_sec * USEC_PER_SEC + elapsed_time.tv_usec) * in main()
/system/extras/tests/pagingtest/
Dmmap_test.c15 struct timeval begin_time, end_time, elapsed_time; in mmap_test() local
31 timersub(&end_time, &begin_time, &elapsed_time); in mmap_test()
32 timeradd(&total_time_mmap, &elapsed_time, &total_time_mmap); in mmap_test()
37 timersub(&end_time, &begin_time, &elapsed_time); in mmap_test()
38 timeradd(&total_time_mmap, &elapsed_time, &total_time_mmap); in mmap_test()
Dpageinout_test.c20 struct timeval begin_time, end_time, elapsed_time, total_time_in, total_time_out; in pageinout_test() local
54 timersub(&end_time, &begin_time, &elapsed_time); in pageinout_test()
55 timeradd(&total_time_in, &elapsed_time, &total_time_in); in pageinout_test()
70 timersub(&end_time, &begin_time, &elapsed_time); in pageinout_test()
71 timeradd(&total_time_out, &elapsed_time, &total_time_out); in pageinout_test()
Dthrashing_test.c19 struct timeval begin_time, end_time, elapsed_time, total_time; in thrashing_test() local
60 timersub(&end_time, &begin_time, &elapsed_time); in thrashing_test()
61 timeradd(&total_time, &elapsed_time, &total_time); in thrashing_test()
/system/connectivity/shill/
Dportal_detector.cc165 struct timeval now, elapsed_time; in AdjustStartDelay() local
167 timersub(&now, &attempt_start_time_, &elapsed_time); in AdjustStartDelay()
169 << elapsed_time.tv_sec << " seconds."; in AdjustStartDelay()
170 if (elapsed_time.tv_sec < kMinTimeBetweenAttemptsSeconds) { in AdjustStartDelay()
172 elapsed_time.tv_sec; in AdjustStartDelay()
Dlink_monitor.cc126 struct timeval now, elapsed_time; in OnActiveLinkMonitorFailure() local
128 timersub(&now, &started_monitoring_at_, &elapsed_time); in OnActiveLinkMonitorFailure()
133 elapsed_time.tv_sec, in OnActiveLinkMonitorFailure()
Dactive_link_monitor.cc268 struct timeval now, elapsed_time; in ReceiveResponse() local
270 timersub(&now, &sent_request_at_, &elapsed_time); in ReceiveResponse()
272 AddResponseTimeSample(elapsed_time.tv_sec * 1000 + in ReceiveResponse()
273 elapsed_time.tv_usec / 1000); in ReceiveResponse()
Dmetrics.cc828 base::TimeDelta elapsed_time; in NotifyTerminationActionsCompleted() local
829 time_termination_actions_timer->GetElapsedTime(&elapsed_time); in NotifyTerminationActionsCompleted()
836 elapsed_time.InMilliseconds(), in NotifyTerminationActionsCompleted()
863 base::TimeDelta elapsed_time; in NotifySuspendActionsCompleted() local
864 time_suspend_actions_timer->GetElapsedTime(&elapsed_time); in NotifySuspendActionsCompleted()
871 elapsed_time.InMilliseconds(), in NotifySuspendActionsCompleted()
899 base::TimeDelta elapsed_time; in NotifyDarkResumeActionsCompleted() local
900 time_dark_resume_actions_timer->GetElapsedTime(&elapsed_time); in NotifyDarkResumeActionsCompleted()
904 elapsed_time.InMilliseconds(), in NotifyDarkResumeActionsCompleted()
1167 base::TimeDelta elapsed_time; in NotifyDeviceScanFinished() local
[all …]
Ddns_client.cc352 struct timeval now, elapsed_time, timeout_tv; in RefreshHandles() local
354 timersub(&now, &resolver_state_->start_time, &elapsed_time); in RefreshHandles()
359 if (timercmp(&elapsed_time, &timeout_tv, >=)) { in RefreshHandles()
377 timersub(&timeout_tv, &elapsed_time, &max); in RefreshHandles()
/system/core/init/
Dbootchart.cpp253 int elapsed_time = current_time - g_last_bootchart_time; in bootchart_sample() local
255 if (elapsed_time >= BOOTCHART_POLLING_MS) { in bootchart_sample()
257 while (elapsed_time >= BOOTCHART_POLLING_MS) { in bootchart_sample()
258 elapsed_time -= BOOTCHART_POLLING_MS; in bootchart_sample()
269 int remaining_time = BOOTCHART_POLLING_MS - elapsed_time; in bootchart_sample()
/system/core/metricsd/include/metrics/
Dtimer_mock.h34 MOCK_CONST_METHOD1(GetElapsedTime, bool(base::TimeDelta* elapsed_time));
44 MOCK_CONST_METHOD1(GetElapsedTime, bool(base::TimeDelta* elapsed_time));
Dtimer.h91 virtual bool GetElapsedTime(base::TimeDelta* elapsed_time) const;
/system/connectivity/shill/wifi/
Dscan_session.cc315 base::TimeDelta elapsed_time; in ReportResults() local
316 ebusy_timer_.GetElapsedTime(&elapsed_time); in ReportResults()
319 elapsed_time.InMilliseconds(), in ReportResults()
324 SLOG(this, log_level) << "Spent " << elapsed_time.InMillisecondsRoundedUp() in ReportResults()
Dwifi.cc2501 base::TimeDelta elapsed_time; in SetScanState() local
2507 if (!scan_timer_.GetElapsedTime(&elapsed_time)) { in SetScanState()
2516 << " @ " << elapsed_time.InMillisecondsF() in SetScanState()
/system/update_engine/
Domaha_request_action.cc1211 TimeDelta elapsed_time = Time::Now() - update_first_seen_at; in IsWallClockBasedWaitingSatisfied() local
1218 << utils::FormatSecs(elapsed_time.InSeconds()) in IsWallClockBasedWaitingSatisfied()
1238 if (elapsed_time > max_scatter_period) { in IsWallClockBasedWaitingSatisfied()
1248 TimeDelta remaining_wait_time = params_->waiting_period() - elapsed_time; in IsWallClockBasedWaitingSatisfied()
/system/extras/f2fs_utils/
Df2fs_sparseblock.c121 D_DISP_u64(cp, elapsed_time); in dbg_print_raw_ckpt_struct()
/system/vold/
Dcryptfs.c2290 double elapsed_time = difftime(time_now.tv_sec, data->time_started); local
2293 int remaining_time = (int)(elapsed_time * remaining_blocks