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