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