Home
last modified time | relevance | path

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

/art/libartbase/base/
Dtime_utils_test.cc24 const uint64_t one_sec = 1000000000; in TEST() local
28 EXPECT_EQ("1s", PrettyDuration(1 * one_sec)); in TEST()
29 EXPECT_EQ("10s", PrettyDuration(10 * one_sec)); in TEST()
30 EXPECT_EQ("100s", PrettyDuration(100 * one_sec)); in TEST()
31 EXPECT_EQ("1.001s", PrettyDuration(1 * one_sec + one_ms)); in TEST()
32 EXPECT_EQ("1.000001s", PrettyDuration(1 * one_sec + one_us, 6)); in TEST()
33 EXPECT_EQ("1.000000001s", PrettyDuration(1 * one_sec + 1, 9)); in TEST()
34 EXPECT_EQ("1.000s", PrettyDuration(1 * one_sec + one_us, 3)); in TEST()
Dtime_utils.cc61 const uint64_t one_sec = 1000 * 1000 * 1000; in GetAppropriateTimeUnit() local
64 if (nano_duration >= one_sec) { in GetAppropriateTimeUnit()
76 const uint64_t one_sec = 1000 * 1000 * 1000; in GetNsToTimeUnitDivisor() local
82 return one_sec; in GetNsToTimeUnitDivisor()
/art/runtime/base/
Dmutex.cc64 const int32_t one_sec = 1000 * 1000 * 1000; // one second in nanoseconds. in ComputeRelativeTimeSpec() local
69 result_ts->tv_nsec += one_sec; in ComputeRelativeTimeSpec()
70 } else if (result_ts->tv_nsec > one_sec) { in ComputeRelativeTimeSpec()
72 result_ts->tv_nsec -= one_sec; in ComputeRelativeTimeSpec()