Searched refs:nano_duration (Results 1 – 2 of 2) sorted by relevance
51 std::string PrettyDuration(uint64_t nano_duration, size_t max_fraction_digits) { in PrettyDuration() argument52 if (nano_duration == 0) { in PrettyDuration()55 return FormatDuration(nano_duration, GetAppropriateTimeUnit(nano_duration), in PrettyDuration()60 TimeUnit GetAppropriateTimeUnit(uint64_t nano_duration) { in GetAppropriateTimeUnit() argument64 if (nano_duration >= one_sec) { in GetAppropriateTimeUnit()66 } else if (nano_duration >= one_ms) { in GetAppropriateTimeUnit()68 } else if (nano_duration >= one_us) { in GetAppropriateTimeUnit()93 std::string FormatDuration(uint64_t nano_duration, TimeUnit time_unit, in FormatDuration() argument111 const uint64_t whole_part = nano_duration / divisor; in FormatDuration()112 uint64_t fractional_part = nano_duration % divisor; in FormatDuration()
41 std::string PrettyDuration(uint64_t nano_duration, size_t max_fraction_digits = 3);44 std::string FormatDuration(uint64_t nano_duration, TimeUnit time_unit,48 TimeUnit GetAppropriateTimeUnit(uint64_t nano_duration);