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