Searched refs:elapsed (Results 1 – 3 of 3) sorted by relevance
67 long elapsed = System.currentTimeMillis() - start; in testThreadSleep() local68 long offBy = Math.abs(elapsed - millis); in testThreadSleep()
1034 long elapsed = now - start; in sleep() local1036 if (elapsed >= duration) { in sleep()1040 duration -= elapsed; in sleep()
1629 long elapsed = System.currentTimeMillis() - start;1631 assertTrue("timeout=" +timeout + ", elapsed=" + elapsed + ", attempts=" + attempts,1632 Math.abs((attempts * timeout) - elapsed) < 500);