Home
last modified time | relevance | path

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

/system/core/metricsd/
Dtimer_test.cc77 ASSERT_EQ(timer_.elapsed_time_.InMilliseconds(), kDelta1MSec); in TEST_F()
81 ASSERT_EQ(timer_.elapsed_time_.InMilliseconds(), in TEST_F()
116 ASSERT_EQ(timer_.elapsed_time_.InMilliseconds(), kDelta1MSec); in TEST_F()
120 ASSERT_EQ(timer_.elapsed_time_.InMilliseconds(), kDelta2MSec); in TEST_F()
125 ASSERT_EQ(timer_.elapsed_time_.InMilliseconds(), in TEST_F()
138 base::TimeDelta elapsed_time = timer_.elapsed_time_; in TEST_F()
140 ASSERT_TRUE(elapsed_time == timer_.elapsed_time_); in TEST_F()
165 ASSERT_EQ(timer_.elapsed_time_.InMilliseconds(), kDelta2MSec); in TEST_F()
169 ASSERT_EQ(timer_.elapsed_time_.InMilliseconds(), in TEST_F()
194 ASSERT_EQ(timer_.elapsed_time_.InMilliseconds(), kDelta2MSec); in TEST_F()
[all …]
Dtimer.cc34 elapsed_time_ = base::TimeDelta(); // Sets elapsed_time_ to zero. in Start()
44 elapsed_time_ += clock_wrapper_->GetCurrentTime() - start_time_; in Stop()
58 elapsed_time_ += clock_wrapper_->GetCurrentTime() - start_time_; in Pause()
79 elapsed_time_ = base::TimeDelta(); // Sets elapsed_time_ to zero. in Reset()
91 *elapsed_time = elapsed_time_; in GetElapsedTime()
/system/core/metricsd/include/metrics/
Dtimer.h115 base::TimeDelta elapsed_time_; variable