@Test public void testGetElapsedTimeInSeconds() { TimeManager instance = new TimeManager(); double expResult = 0.36; myMethod(360); double result = instance.getElapsedTimeInSeconds(); Assert.assertEquals(expResult, result, 0.36); }
public synchronized double getElapsedTimeInSeconds() { double currentTime = System.currentTimeMillis(); return ((currentTime - startTime) / 1000); }
TimeManager { public synchronized double getElapsedTimeInSeconds() { double currentTime = System.currentTimeMillis(); return ((currentTime - startTime) / 1000); } }
TimeManager { public synchronized double getElapsedTimeInSeconds() { double currentTime = System.currentTimeMillis(); return ((currentTime - startTime) / 1000); } TimeManager(); }
TimeManager { public synchronized double getElapsedTimeInSeconds() { double currentTime = System.currentTimeMillis(); return ((currentTime - startTime) / 1000); } TimeManager(); synchronized double getElapsedTimeInHours(); synchronized double getElapsedTimeInMinutes(); synchronized double getElapsedTimeInSeconds(); synchronized double getElapsedTimeInMilliSeconds(); }
TimeManager { public synchronized double getElapsedTimeInSeconds() { double currentTime = System.currentTimeMillis(); return ((currentTime - startTime) / 1000); } TimeManager(); synchronized double getElapsedTimeInHours(); synchronized double getElapsedTimeInMinutes(); synchronized double getElapsedTimeInSeconds(); synchronized double getElapsedTimeInMilliSeconds();  }