@Test public void testSelectDurationUnitForDisplay() throws InterruptedException { assertEquals(DurationUnit.NANOSECOND, Util.selectDurationUnitForDisplay(10)); assertEquals(DurationUnit.NANOSECOND, Util.selectDurationUnitForDisplay(9 * Util.NANOS_IN_ONE_MICROSECOND)); assertEquals(DurationUnit.MICROSECOND, Util.selectDurationUnitForDisplay(11 * Util.NANOS_IN_ONE_MICROSECOND)); assertEquals(DurationUnit.MICROSECOND, Util.selectDurationUnitForDisplay(9 * Util.NANOS_IN_ONE_MILLISECOND)); assertEquals(DurationUnit.MILLISSECOND, Util.selectDurationUnitForDisplay(11 * Util.NANOS_IN_ONE_MILLISECOND)); assertEquals(DurationUnit.SECOND, Util.selectDurationUnitForDisplay(11 * Util.NANOS_IN_ONE_SECOND)); }
static DurationUnit selectDurationUnitForDisplay(StopWatch sw) { return selectDurationUnitForDisplay(sw.elapsedTime()); }
Util { static DurationUnit selectDurationUnitForDisplay(StopWatch sw) { return selectDurationUnitForDisplay(sw.elapsedTime()); } }
Util { static DurationUnit selectDurationUnitForDisplay(StopWatch sw) { return selectDurationUnitForDisplay(sw.elapsedTime()); }  }
Util { static DurationUnit selectDurationUnitForDisplay(StopWatch sw) { return selectDurationUnitForDisplay(sw.elapsedTime()); }  static double convertToMicros(long nanos); static double convertToMillis(long nanos); static double convertToSeconds(long nanos); }
Util { static DurationUnit selectDurationUnitForDisplay(StopWatch sw) { return selectDurationUnitForDisplay(sw.elapsedTime()); }  static double convertToMicros(long nanos); static double convertToMillis(long nanos); static double convertToSeconds(long nanos);  }