Home
last modified time | relevance | path

Searched refs:NANOSECONDS (Results 1 – 21 of 21) sorted by relevance

/external/guava/guava-tests/test/com/google/common/base/
DStopwatchTest.java21 import static java.util.concurrent.TimeUnit.NANOSECONDS;
42 assertEquals(0, stopwatch.elapsedTime(NANOSECONDS)); in testInitialState()
91 assertEquals(0, stopwatch.elapsedTime(NANOSECONDS)); in testReset_new()
94 assertEquals(3, stopwatch.elapsedTime(NANOSECONDS)); in testReset_new()
100 assertEquals(0, stopwatch.elapsedTime(NANOSECONDS)); in testReset_whileRunning()
102 assertEquals(2, stopwatch.elapsedTime(NANOSECONDS)); in testReset_whileRunning()
106 assertEquals(0, stopwatch.elapsedTime(NANOSECONDS)); in testReset_whileRunning()
112 assertEquals(0, stopwatch.elapsedTime(NANOSECONDS)); in testElapsedTime_whileRunning()
115 assertEquals(345, stopwatch.elapsedTime(NANOSECONDS)); in testElapsedTime_whileRunning()
124 assertEquals(4, stopwatch.elapsedTime(NANOSECONDS)); in testElapsedTime_notRunning()
[all …]
DSuppliersTest.java242 supplier, Long.MAX_VALUE, TimeUnit.NANOSECONDS); in testExpiringMemoizedSupplierThreadSafe()
/external/guava/guava/src/com/google/common/base/
DStopwatch.java23 import static java.util.concurrent.TimeUnit.NANOSECONDS;
157 return desiredUnit.convert(elapsedNanos(), NANOSECONDS); in elapsedTime()
189 double value = (double) nanos / NANOSECONDS.convert(1, unit); in toString()
197 if (SECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
200 if (MILLISECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
203 if (MICROSECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
206 return NANOSECONDS; in chooseUnit()
211 case NANOSECONDS: in abbreviate()
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/
DStopwatch.java23 import static java.util.concurrent.TimeUnit.NANOSECONDS;
156 return desiredUnit.convert(elapsedNanos(), NANOSECONDS); in elapsedTime()
169 if (SECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
172 if (MILLISECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
175 if (MICROSECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
178 return NANOSECONDS; in chooseUnit()
183 case NANOSECONDS: in abbreviate()
/external/guava/guava/src/com/google/common/util/concurrent/
DUninterruptibles.java19 import static java.util.concurrent.TimeUnit.NANOSECONDS;
83 return latch.await(remainingNanos, NANOSECONDS); in awaitUninterruptibly()
164 return future.get(remainingNanos, NANOSECONDS); in getUninterruptibly()
192 NANOSECONDS.timedJoin(toJoin, remainingNanos); in joinUninterruptibly()
261 NANOSECONDS.sleep(remainingNanos); in sleepUninterruptibly()
DAbstractListeningExecutorService.java98 f = ecs.poll(nanos, TimeUnit.NANOSECONDS); in doInvokeAny()
215 f.get(nanos, TimeUnit.NANOSECONDS); in invokeAll()
DFutures.java28 import static java.util.concurrent.TimeUnit.NANOSECONDS;
649 if (unit != NANOSECONDS) {
650 timeout = NANOSECONDS.convert(timeout, unit);
651 unit = NANOSECONDS;
DMonitor.java321 return lock.tryLock(remainingNanos, TimeUnit.NANOSECONDS); in enter()
453 if (lock.tryLock(remainingNanos, TimeUnit.NANOSECONDS)) { in enterWhenUninterruptibly()
/external/guava/guava-tests/test/com/google/common/collect/
DQueuesTest.java94 int elements = drain(q, buf, 100, Long.MAX_VALUE, TimeUnit.NANOSECONDS, interruptibly); in testMultipleProducers()
163 int elements = Queues.drain(q, buf, -1, Long.MAX_VALUE, TimeUnit.NANOSECONDS); in testNegativeMaxElements()
169 Queues.drain(q, buf, 1, Long.MAX_VALUE, TimeUnit.NANOSECONDS); in testNegativeMaxElements()
181 Queues.drain(q, ImmutableList.of(), 100, Long.MAX_VALUE, TimeUnit.NANOSECONDS); in testDrain_throws()
204 Queues.drainUninterruptibly(q, buf, 100, Long.MAX_VALUE, TimeUnit.NANOSECONDS); in testDrainUninterruptibly_doesNotThrow()
243 Queues.drain(q, Lists.newArrayList(), 1, Long.MAX_VALUE, TimeUnit.NANOSECONDS); in assertInterruptibleDrained()
DComputingConcurrentHashMapTest.java227 MapMaker maker = createMapMaker().expireAfterWrite(1, TimeUnit.NANOSECONDS); in testComputeExpiredEntry()
/external/okhttp/src/test/java/com/squareup/okhttp/internal/
DRecordingReceiver.java50 long timeoutMillis = TimeUnit.NANOSECONDS.toMillis(System.nanoTime()) + TIMEOUT_MILLIS; in await()
58 long nowMillis = TimeUnit.NANOSECONDS.toMillis(System.nanoTime()); in await()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DInterruptionUtil.java20 import static java.util.concurrent.TimeUnit.NANOSECONDS;
127 NANOSECONDS.timedJoin(thread, remainingNanos); in joinUninterruptibly()
DJSR166TestCase.java31 import static java.util.concurrent.TimeUnit.NANOSECONDS;
756 return NANOSECONDS.toMillis(System.nanoTime() - startNanoTime); in millisElapsedSince()
/external/guava/guava/src/com/google/common/collect/
DQueues.java218 E e = q.poll(deadline - System.nanoTime(), TimeUnit.NANOSECONDS); in drain()
257 e = q.poll(deadline - System.nanoTime(), TimeUnit.NANOSECONDS); in drainUninterruptibly()
DMapMakerInternalMap.java4006 mapMaker.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
4009 mapMaker.expireAfterAccess(expireAfterAccessNanos, TimeUnit.NANOSECONDS);
/external/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderTest.java25 import static java.util.concurrent.TimeUnit.NANOSECONDS;
277 .expireAfterWrite(1, NANOSECONDS) in testTimeToLive_small()
304 .expireAfterAccess(1, NANOSECONDS) in testTimeToIdle_small()
323 .expireAfterWrite(1, NANOSECONDS) in testTimeToIdleAndToLive()
324 .expireAfterAccess(1, NANOSECONDS) in testTimeToIdleAndToLive()
DLocalCacheTest.java31 import static java.util.concurrent.TimeUnit.NANOSECONDS;
531 .expireAfterWrite(1, TimeUnit.NANOSECONDS); in testComputeExpiredEntry()
822 .expireAfterWrite(2, TimeUnit.NANOSECONDS) in testRemovalListener_expired()
964 .expireAfterAccess(1, TimeUnit.NANOSECONDS)); in testSegmentGetAndContains()
2042 .expireAfterWrite(1, TimeUnit.NANOSECONDS)); in testExpireAfterWrite()
2081 .expireAfterAccess(1, TimeUnit.NANOSECONDS)); in testExpireAfterAccess()
2367 .expireAfterAccess(123, NANOSECONDS) in testSerializationProxyManual()
/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/
DTimeUnit.java14 NANOSECONDS { enumConstant
/external/guava/guava/src/com/google/common/cache/
DLocalCache.java24 import static java.util.concurrent.TimeUnit.NANOSECONDS;
3581 return stopwatch.elapsedTime(NANOSECONDS); in elapsedNanos()
4063 globalStatsCounter.recordLoadException(stopwatch.elapsedTime(NANOSECONDS));
4068 globalStatsCounter.recordLoadException(stopwatch.elapsedTime(NANOSECONDS));
4087 globalStatsCounter.recordLoadException(stopwatch.elapsedTime(NANOSECONDS));
4092 globalStatsCounter.recordLoadSuccess(stopwatch.elapsedTime(NANOSECONDS));
4650 builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
4653 builder.expireAfterAccess(expireAfterAccessNanos, TimeUnit.NANOSECONDS);
/external/okhttp/src/test/java/com/squareup/okhttp/internal/spdy/
DSpdyConnectionTest.java857 assertEquals(1000d, TimeUnit.NANOSECONDS.toMillis(elapsedNanos), 200d /* 200ms delta */);
/external/srec/config/en.us/dictionary/
Dc0.678094 NANOSECONDS N AE1 N OW0 S EH2 K AH0 N D Z