Searched refs:durationNanos (Results 1 – 3 of 3) sorted by relevance
72 final long durationNanos = System.nanoTime() - startNanos; in testRemoveWithSpuriousNotify() local73 final long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithSpuriousNotify()96 final long durationNanos = System.nanoTime() - startNanos; in testRemoveWithDelayedResultAndNoTimeout() local97 final long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithDelayedResultAndNoTimeout()112 final long durationNanos = System.nanoTime() - startNanos; in testRemoveWithDelayedResultAndTimeout() local113 final long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithDelayedResultAndTimeout()
430 final long durationNanos; in sleep() local433 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()
503 private boolean sleepForNanos(long durationNanos) { in sleepForNanos() argument509 long sleepNanos = durationNanos - elapsedNanos; in sleepForNanos()