TimeUtil { public static double microToMilli(final double micro){ return micro/1000.0; } private  TimeUtil(); static String secondsToStr(final double seconds); static double currentTimeSecs(); static double elapsedSeconds(final double startTimeSeconds); static double microToMilli(final double micro); static double microToSeconds(final double micro); static double minutesToSeconds(final double minutes); static double millisecsToMinutes(final long milli); static double secondsToMinutes(final double seconds); static double secondsToHours(final double seconds); static double secondsToDays(final double seconds); static double hoursToDays(final double hours); static double hoursToMinutes(final double hours); static double hoursToSeconds(final double hours); static double daysToSeconds(final double days); static double monthsToSeconds(final double months);  }
@Test public void microToMilli1(){ final double micro = 1; final double expectedMilli = 0.001; assertEquals(expectedMilli, TimeUtil.microToMilli(micro)); }
@Test public void microToMilli1000(){ final double micro = 1000; final double expectedMilli = 1; assertEquals(expectedMilli, TimeUtil.microToMilli(micro)); }