Home
last modified time | relevance | path

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

/system/core/metricsd/
Dtimer.cc35 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()
89 if (start_time_.is_null() || !elapsed_time) in GetElapsedTime()
93 *elapsed_time += clock_wrapper_->GetCurrentTime() - start_time_; in GetElapsedTime()
Dtimer_test.cc74 ASSERT_TRUE(timer_.start_time_ == stime); in TEST_F()
93 base::TimeTicks buffer = timer_.start_time_; in TEST_F()
95 ASSERT_FALSE(timer_.start_time_ == buffer); in TEST_F()
118 ASSERT_TRUE(timer_.start_time_ == stime2); in TEST_F()
157 ASSERT_TRUE(timer_.start_time_ == stime); in TEST_F()
161 ASSERT_TRUE(timer_.start_time_ == stime2); in TEST_F()
186 ASSERT_TRUE(timer_.start_time_ == stime); in TEST_F()
190 ASSERT_TRUE(timer_.start_time_ == stime2); in TEST_F()
213 ASSERT_TRUE(timer_.start_time_ == stime); in TEST_F()
217 ASSERT_TRUE(timer_.start_time_ == stime); in TEST_F()
[all …]
/system/core/metricsd/include/metrics/
Dtimer.h118 base::TimeTicks start_time_; variable