Home
last modified time | relevance | path

Searched refs:elapsed (Results 1 – 4 of 4) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/
DThreadTest.java67 long elapsed = System.currentTimeMillis() - start; in testThreadSleep() local
68 long offBy = Math.abs(elapsed - millis); in testThreadSleep()
/libcore/luni/src/main/java/java/util/concurrent/
DFutureTask.java409 long elapsed = System.nanoTime() - startTime; in awaitDone() local
410 if (elapsed >= nanos) { in awaitDone()
414 parkNanos = nanos - elapsed; in awaitDone()
/libcore/libart/src/main/java/java/lang/
DThread.java1034 long elapsed = now - start; in sleep() local
1036 if (elapsed >= duration) { in sleep()
1040 duration -= elapsed; in sleep()
/libcore/luni/src/test/java/libcore/java/net/
DURLConnectionTest.java1766 long elapsed = System.currentTimeMillis() - start;
1768 assertTrue("timeout=" +timeout + ", elapsed=" + elapsed + ", attempts=" + attempts,
1769 Math.abs((attempts * timeout) - elapsed) < 500);