Lines Matching refs:unit
21 -u/--unit: set the output time unit (nsec, usec, msec, or sec)
254 '_wrap_timer' is an internal interface used for unit testing. If it
256 and returns another timer function (used for unit testing).
265 "verbose", "unit=", "help"])
285 if o in ("-u", "--unit"):
289 print("Unrecognized unit. Please select nsec, usec, msec, or sec.",
341 unit = time_unit
343 if unit is not None:
344 scale = units[unit]
346 scales = [(scale, unit) for unit, scale in units.items()]
348 for scale, unit in scales:
352 return "%.*g %s" % (precision, dt / scale, unit)