Searched refs:elapsed (Results 1 – 4 of 4) sorted by relevance
67 long elapsed = System.currentTimeMillis() - start; in testThreadSleep() local68 long offBy = Math.abs(elapsed - millis); in testThreadSleep()
409 long elapsed = System.nanoTime() - startTime; in awaitDone() local410 if (elapsed >= nanos) { in awaitDone()414 parkNanos = nanos - elapsed; in awaitDone()
1034 long elapsed = now - start; in sleep() local1036 if (elapsed >= duration) { in sleep()1040 duration -= elapsed; in sleep()
1766 long elapsed = System.currentTimeMillis() - start;1768 assertTrue("timeout=" +timeout + ", elapsed=" + elapsed + ", attempts=" + attempts,1769 Math.abs((attempts * timeout) - elapsed) < 500);