Home
last modified time | relevance | path

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

/art/runtime/
Dutils_test.cc178 const uint64_t one_sec = 1000000000; in TEST_F() local
182 EXPECT_EQ("1s", PrettyDuration(1 * one_sec)); in TEST_F()
183 EXPECT_EQ("10s", PrettyDuration(10 * one_sec)); in TEST_F()
184 EXPECT_EQ("100s", PrettyDuration(100 * one_sec)); in TEST_F()
185 EXPECT_EQ("1.001s", PrettyDuration(1 * one_sec + one_ms)); in TEST_F()
186 EXPECT_EQ("1.000001s", PrettyDuration(1 * one_sec + one_us, 6)); in TEST_F()
187 EXPECT_EQ("1.000000001s", PrettyDuration(1 * one_sec + 1, 9)); in TEST_F()
188 EXPECT_EQ("1.000s", PrettyDuration(1 * one_sec + one_us, 3)); in TEST_F()
Dutils.cc487 const uint64_t one_sec = 1000 * 1000 * 1000; in GetAppropriateTimeUnit() local
490 if (nano_duration >= one_sec) { in GetAppropriateTimeUnit()
502 const uint64_t one_sec = 1000 * 1000 * 1000; in GetNsToTimeUnitDivisor() local
508 return one_sec; in GetNsToTimeUnitDivisor()
/art/runtime/base/
Dmutex.cc71 const int32_t one_sec = 1000 * 1000 * 1000; // one second in nanoseconds. in ComputeRelativeTimeSpec() local
76 result_ts->tv_nsec += one_sec; in ComputeRelativeTimeSpec()
77 } else if (result_ts->tv_nsec > one_sec) { in ComputeRelativeTimeSpec()
79 result_ts->tv_nsec -= one_sec; in ComputeRelativeTimeSpec()