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()
95 final long durationNanos = System.nanoTime() - startNanos; in testRemoveWithDelayedResultAndNoTimeout() local
96 final long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithDelayedResultAndNoTimeout()
106 final long durationNanos = System.nanoTime() - startNanos; in testRemoveWithDelayedResultAndTimeout() local
107 final long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithDelayedResultAndTimeout()
/libcore/ojluni/src/main/java/java/lang/
DThread.java433 final long durationNanos; in sleep() local
436 durationNanos = Long.MAX_VALUE; in sleep()
438 durationNanos = (millis * nanosPerMilli) + nanos; in sleep()
448 for (long elapsed = 0L; elapsed < durationNanos; in sleep()
450 final long remaining = durationNanos - elapsed; in sleep()
/libcore/libart/src/main/java/java/lang/
DDaemons.java376 private boolean sleepForNanos(long durationNanos) { in sleepForNanos() argument
382 long sleepNanos = durationNanos - elapsedNanos; in sleepForNanos()