Home
last modified time | relevance | path

Searched refs:clock_wrapper_ (Results 1 – 3 of 3) sorted by relevance

/system/core/metricsd/
Dtimer.cc31 clock_wrapper_(new ClockWrapper()) {} in Timer()
35 start_time_ = clock_wrapper_->GetCurrentTime(); in Start()
44 elapsed_time_ += clock_wrapper_->GetCurrentTime() - start_time_; in Stop()
58 elapsed_time_ += clock_wrapper_->GetCurrentTime() - start_time_; in Pause()
70 start_time_ = clock_wrapper_->GetCurrentTime(); in Resume()
93 *elapsed_time += clock_wrapper_->GetCurrentTime() - start_time_; in GetElapsedTime()
Dtimer_test.cc72 timer_.clock_wrapper_.reset(clock_wrapper_mock_.release()); in TEST_F()
91 timer_.clock_wrapper_.reset(clock_wrapper_mock_.release()); in TEST_F()
101 timer_.clock_wrapper_.reset(clock_wrapper_mock_.release()); in TEST_F()
113 timer_.clock_wrapper_.reset(clock_wrapper_mock_.release()); in TEST_F()
133 timer_.clock_wrapper_.reset(clock_wrapper_mock_.release()); in TEST_F()
155 timer_.clock_wrapper_.reset(clock_wrapper_mock_.release()); in TEST_F()
184 timer_.clock_wrapper_.reset(clock_wrapper_mock_.release()); in TEST_F()
211 timer_.clock_wrapper_.reset(clock_wrapper_mock_.release()); in TEST_F()
233 timer_.clock_wrapper_.reset(clock_wrapper_mock_.release()); in TEST_F()
260 timer_.clock_wrapper_.reset(clock_wrapper_mock_.release()); in TEST_F()
[all …]
/system/core/metricsd/include/metrics/
Dtimer.h124 std::unique_ptr<ClockWrapper> clock_wrapper_; variable