Home
last modified time | relevance | path

Searched refs:durationNanos (Results 1 – 3 of 3) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/ref/
DReferenceQueueTest.java72 final long durationNanos = System.nanoTime() - startNanos; in testRemoveWithSpuriousNotify() local
73 final long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithSpuriousNotify()
96 final long durationNanos = System.nanoTime() - startNanos; in testRemoveWithDelayedResultAndNoTimeout() local
97 final long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithDelayedResultAndNoTimeout()
112 final long durationNanos = System.nanoTime() - startNanos; in testRemoveWithDelayedResultAndTimeout() local
113 final long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithDelayedResultAndTimeout()
/libcore/ojluni/src/main/java/java/lang/
DThread.java430 final long durationNanos; in sleep() local
433 durationNanos = Long.MAX_VALUE; in sleep()
435 durationNanos = (millis * nanosPerMilli) + nanos; in sleep()
445 for (long elapsed = 0L; elapsed < durationNanos; in sleep()
447 final long remaining = durationNanos - elapsed; in sleep()
/libcore/libart/src/main/java/java/lang/
DDaemons.java503 private boolean sleepForNanos(long durationNanos) { in sleepForNanos() argument
509 long sleepNanos = durationNanos - elapsedNanos; in sleepForNanos()