Home
last modified time | relevance | path

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

/art/libartbase/base/
Dtime_utils.cc53 std::string PrettyDuration(uint64_t nano_duration, size_t max_fraction_digits) { in PrettyDuration() argument
54 if (nano_duration == 0) { in PrettyDuration()
57 return FormatDuration(nano_duration, GetAppropriateTimeUnit(nano_duration), in PrettyDuration()
62 TimeUnit GetAppropriateTimeUnit(uint64_t nano_duration) { in GetAppropriateTimeUnit() argument
66 if (nano_duration >= one_sec) { in GetAppropriateTimeUnit()
68 } else if (nano_duration >= one_ms) { in GetAppropriateTimeUnit()
70 } else if (nano_duration >= one_us) { in GetAppropriateTimeUnit()
95 std::string FormatDuration(uint64_t nano_duration, TimeUnit time_unit, in FormatDuration() argument
113 const uint64_t whole_part = nano_duration / divisor; in FormatDuration()
114 uint64_t fractional_part = nano_duration % divisor; in FormatDuration()
Dtime_utils.h45 std::string PrettyDuration(uint64_t nano_duration, size_t max_fraction_digits = 3);
48 std::string FormatDuration(uint64_t nano_duration, TimeUnit time_unit,
52 TimeUnit GetAppropriateTimeUnit(uint64_t nano_duration);