@Test public void testFinishTimesAheadOfStartTimes() { long elapsed = Times.elapsed(10, 5, true); Assert.assertEquals("Elapsed time is not -1", -1, elapsed); elapsed = Times.elapsed(10, 5, false); Assert.assertEquals("Elapsed time is not -1", -1, elapsed); elapsed = Times.elapsed(Long.MAX_VALUE, 0, true); Assert.assertEquals("Elapsed time is not -1", -1, elapsed); }
public static long elapsed(long started, long finished) { return Times.elapsed(started, finished, true); }
Times { public static long elapsed(long started, long finished) { return Times.elapsed(started, finished, true); } }
Times { public static long elapsed(long started, long finished) { return Times.elapsed(started, finished, true); }  }
Times { public static long elapsed(long started, long finished) { return Times.elapsed(started, finished, true); }  static long elapsed(long started, long finished); static long elapsed(long started, long finished, boolean isRunning); static String format(long ts); }
Times { public static long elapsed(long started, long finished) { return Times.elapsed(started, finished, true); }  static long elapsed(long started, long finished); static long elapsed(long started, long finished, boolean isRunning); static String format(long ts);  }