@Test public void testReset() throws InterruptedException { Timer timer = Timer.getTimer(); timer.start(); timer.lap(); Thread.sleep(1); timer.reset(); assertEquals(0, timer.getElapsedMilliseconds()); assertEquals(0, timer.getLapMilliseconds()); }
public Timer reset() { this.stopTime = null; this.startTime = null; this.lapTime = null; return this; }
Timer { public Timer reset() { this.stopTime = null; this.startTime = null; this.lapTime = null; return this; } }
Timer { public Timer reset() { this.stopTime = null; this.startTime = null; this.lapTime = null; return this; } private  Timer(); }
Timer { public Timer reset() { this.stopTime = null; this.startTime = null; this.lapTime = null; return this; } private  Timer(); static Timer getTimer(); Timer start(); Timer stop(); Timer lap(); Timer reset(); long getElapsedMilliseconds(); long getLapMilliseconds(); }
Timer { public Timer reset() { this.stopTime = null; this.startTime = null; this.lapTime = null; return this; } private  Timer(); static Timer getTimer(); Timer start(); Timer stop(); Timer lap(); Timer reset(); long getElapsedMilliseconds(); long getLapMilliseconds();  }