@Test public void testGetLapMilliseconds() throws InterruptedException { Timer timer = Timer.getTimer(); assertEquals(0, timer.getElapsedMilliseconds()); timer.start(); timer.lap(); Thread.sleep(1); assertTrue(timer.getElapsedMilliseconds() > 0); }
public long getLapMilliseconds() { if (this.lapTime != null) { return this.getFinalTime() - this.lapTime; } return 0; }
Timer { public long getLapMilliseconds() { if (this.lapTime != null) { return this.getFinalTime() - this.lapTime; } return 0; } }
Timer { public long getLapMilliseconds() { if (this.lapTime != null) { return this.getFinalTime() - this.lapTime; } return 0; } private  Timer(); }
Timer { public long getLapMilliseconds() { if (this.lapTime != null) { return this.getFinalTime() - this.lapTime; } return 0; } private  Timer(); static Timer getTimer(); Timer start(); Timer stop(); Timer lap(); Timer reset(); long getElapsedMilliseconds(); long getLapMilliseconds(); }
Timer { public long getLapMilliseconds() { if (this.lapTime != null) { return this.getFinalTime() - this.lapTime; } return 0; } private  Timer(); static Timer getTimer(); Timer start(); Timer stop(); Timer lap(); Timer reset(); long getElapsedMilliseconds(); long getLapMilliseconds();  }