Home
last modified time | relevance | path

Searched refs:one_us (Results 1 – 2 of 2) sorted by relevance

/art/runtime/base/
Dtime_utils_test.cc26 const uint64_t one_us = 1000; in TEST() local
32 EXPECT_EQ("1.000001s", PrettyDuration(1 * one_sec + one_us, 6)); in TEST()
34 EXPECT_EQ("1.000s", PrettyDuration(1 * one_sec + one_us, 3)); in TEST()
39 EXPECT_EQ("1.001ms", PrettyDuration(1 * one_ms + one_us)); in TEST()
42 EXPECT_EQ("1us", PrettyDuration(1 * one_us)); in TEST()
43 EXPECT_EQ("10us", PrettyDuration(10 * one_us)); in TEST()
44 EXPECT_EQ("100us", PrettyDuration(100 * one_us)); in TEST()
45 EXPECT_EQ("1.001us", PrettyDuration(1 * one_us + 1)); in TEST()
Dtime_utils.cc43 const uint64_t one_us = 1000; in GetAppropriateTimeUnit() local
48 } else if (nano_duration >= one_us) { in GetAppropriateTimeUnit()
58 const uint64_t one_us = 1000; in GetNsToTimeUnitDivisor() local
66 return one_us; in GetNsToTimeUnitDivisor()