Home
last modified time | relevance | path

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

/art/runtime/
Dutils.cc477 std::string PrettyDuration(uint64_t nano_duration, size_t max_fraction_digits) { in PrettyDuration() argument
478 if (nano_duration == 0) { in PrettyDuration()
481 return FormatDuration(nano_duration, GetAppropriateTimeUnit(nano_duration), in PrettyDuration()
486 TimeUnit GetAppropriateTimeUnit(uint64_t nano_duration) { in GetAppropriateTimeUnit() argument
490 if (nano_duration >= one_sec) { in GetAppropriateTimeUnit()
492 } else if (nano_duration >= one_ms) { in GetAppropriateTimeUnit()
494 } else if (nano_duration >= one_us) { in GetAppropriateTimeUnit()
519 std::string FormatDuration(uint64_t nano_duration, TimeUnit time_unit, in FormatDuration() argument
537 const uint64_t whole_part = nano_duration / divisor; in FormatDuration()
538 uint64_t fractional_part = nano_duration % divisor; in FormatDuration()
Dutils.h324 std::string PrettyDuration(uint64_t nano_duration, size_t max_fraction_digits = 3);
327 std::string FormatDuration(uint64_t nano_duration, TimeUnit time_unit,
331 TimeUnit GetAppropriateTimeUnit(uint64_t nano_duration);