Searched refs:one_us (Results 1 – 2 of 2) sorted by relevance
26 const uint64_t one_us = 1000; in TEST() local32 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()
43 const uint64_t one_us = 1000; in GetAppropriateTimeUnit() local48 } else if (nano_duration >= one_us) { in GetAppropriateTimeUnit()58 const uint64_t one_us = 1000; in GetNsToTimeUnitDivisor() local66 return one_us; in GetNsToTimeUnitDivisor()