Searched refs:value_us (Results 1 – 1 of 1) sorted by relevance
85 def time_to_readable_str(value_us, force_time_unit=None): argument99 if not value_us:106 return "{:.10g}{}".format(value_us / math.pow(10.0, 3*order), time_unit)108 order = min(len(TIME_UNITS) - 1, int(math.log(value_us, 10) / 3))110 return "{:.3g}{}".format(value_us / math.pow(10.0, 3*order), time_unit)