Home
last modified time | relevance | path

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

/system/netd/libnetdutils/include/netdutils/
DStopwatch.h37 int64_t elapsed = getElapsedUs(now); in getTimeAndResetUs() local
39 return elapsed; in getTimeAndResetUs()
/system/extras/tests/tcp_nuke_addr/
Dtcp_nuke_addr_test.cpp116 uint32_t elapsed = 0; in progressThread() local
120 elapsed++; in progressThread()
122 printf("%ds: %u cps, total %u\n", elapsed, total-previous, total); in progressThread()
/system/bt/gd/rust/common/src/
Dtime.rs97 assert_near!(timer.elapsed().as_millis(), 10, 3); in alarm_simple_case()
118 assert_near!(timer.elapsed().as_millis(), 20, 3); in alarm_clear_ready_after_expired()
140 assert_near!(timer.elapsed().as_millis(), 10 * n, 3); in interval_simple_case()
/system/security/keystore2/src/
Dwatchdog.rs101 if self.last_report.elapsed() < Watchdog::NOISY_REPORT_TIMEOUT { in log_report()
125 r.started.elapsed(), in log_report()
126 r.deadline.elapsed(), in log_report()
135 r.started.elapsed(), in log_report()
136 r.deadline.elapsed() in log_report()
Dapc.rs151 let elapsed = self.timestamp.elapsed(); in get_remaining_back_off() localVariable
156 back_off.checked_sub(elapsed) in get_remaining_back_off()
Did_rotation.rs56 .elapsed() in had_factory_reset_since_id_rotation()
/system/core/fs_mgr/libsnapshot/
Dsnapuserd_client.cpp77 auto elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(now - start); in Connect() local
78 if (elapsed >= timeout_ms) { in Connect()
Dsnapshot.cpp3739 auto elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(now - start); in DeleteDeviceIfExists() local
3740 if (elapsed >= timeout_ms) { in DeleteDeviceIfExists()
/system/core/fs_mgr/
Dfile_wait.cpp210 auto elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(remaining); in RemainingMs() local
211 return (relative_timeout_ - elapsed).count(); in RemainingMs()
/system/extras/profcollectd/libprofcollectd/
Dservice.rs176 let report_age = report_ts.unwrap().elapsed()?; in new()
/system/core/fastboot/fuzzy_fastboot/
Dmain.cpp879 std::chrono::duration<double> elapsed; in TEST_F() local
887 elapsed = std::chrono::high_resolution_clock::now() - start; in TEST_F()
888 } while (i++, elapsed.count() < 5); in TEST_F()
984 std::chrono::duration<double> elapsed; in TEST_F() local
988 elapsed = std::chrono::high_resolution_clock::now() - start; in TEST_F()
989 } while (i++, elapsed.count() < 5); in TEST_F()
997 std::chrono::duration<double> elapsed; in TEST_F() local
1004 elapsed = std::chrono::high_resolution_clock::now() - start; in TEST_F()
1005 } while (elapsed.count() < 10); in TEST_F()
/system/vold/bench/inodeop_bench/
Dinodeop_bench.cpp58 auto elapsed = std::chrono::steady_clock::now() - reset_time; in collect_metric() local
59 metrics.emplace_back(workload, std::chrono::duration_cast<time_unit>(elapsed)); in collect_metric()
/system/core/fs_mgr/libfiemap/
Dimage_manager.cpp477 auto elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(now - start_time); in MapWithLoopDevice() local
480 if (!CreateLoopDevice(control, file, timeout_ms - elapsed, &loop_device)) { in MapWithLoopDevice()