Home
last modified time | relevance | path

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

/external/guava/guava/src/com/google/common/util/concurrent/
DUninterruptibles.java79 long remainingNanos = unit.toNanos(timeout); in awaitUninterruptibly() local
80 long end = System.nanoTime() + remainingNanos; in awaitUninterruptibly()
85 return latch.await(remainingNanos, NANOSECONDS); in awaitUninterruptibly()
88 remainingNanos = end - System.nanoTime(); in awaitUninterruptibly()
167 long remainingNanos = unit.toNanos(timeout); in getUninterruptibly() local
168 long end = System.nanoTime() + remainingNanos; in getUninterruptibly()
173 return future.get(remainingNanos, NANOSECONDS); in getUninterruptibly()
176 remainingNanos = end - System.nanoTime(); in getUninterruptibly()
196 long remainingNanos = unit.toNanos(timeout); in joinUninterruptibly() local
197 long end = System.nanoTime() + remainingNanos; in joinUninterruptibly()
[all …]
/external/okhttp/okio/okio/src/main/java/okio/
DAsyncTimeout.java94 long remainingNanos = node.remainingNanos(now); in scheduleTimeout() local
96 if (prev.next == null || remainingNanos < prev.next.remainingNanos(now)) { in scheduleTimeout()
133 private long remainingNanos(long now) { in remainingNanos() method in AsyncTimeout
315 long waitNanos = node.remainingNanos(System.nanoTime());
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DInterruptionUtil.java123 long remainingNanos = unit.toNanos(timeout); in joinUninterruptibly() local
124 long end = System.nanoTime() + remainingNanos; in joinUninterruptibly()
129 NANOSECONDS.timedJoin(thread, remainingNanos); in joinUninterruptibly()
133 remainingNanos = end - System.nanoTime(); in joinUninterruptibly()
/external/caliper/caliper/src/test/java/com/google/caliper/runner/
DRuntimeInstrumentTest.java179 long remainingNanos = TimeUnit.MILLISECONDS.toNanos(10); in spin() local
182 while ((elapsed = System.nanoTime() - start) < remainingNanos) {} in spin()