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()95 final long durationNanos = System.nanoTime() - startNanos; in testRemoveWithDelayedResultAndNoTimeout() local96 final long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithDelayedResultAndNoTimeout()106 final long durationNanos = System.nanoTime() - startNanos; in testRemoveWithDelayedResultAndTimeout() local107 final long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithDelayedResultAndTimeout()
433 final long durationNanos; in sleep() local436 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()
376 private boolean sleepForNanos(long durationNanos) { in sleepForNanos() argument382 long sleepNanos = durationNanos - elapsedNanos; in sleepForNanos()