Home
last modified time | relevance | path

Searched refs:nanoTime (Results 1 – 25 of 52) sorted by relevance

123

/libcore/jsr166-tests/src/test/java/jsr166/
DSystemTest.java30 long n1 = System.nanoTime(); in testNanoTime1()
32 long n2 = System.nanoTime(); in testNanoTime1()
48 long n1 = System.nanoTime(); in testNanoTime2()
54 long n2 = System.nanoTime(); in testNanoTime2()
DCyclicBarrierTest.java31 long startTime = System.nanoTime(); in awaitNumberWaiting()
173 long startTime = System.nanoTime(); in testAwait3_TimeoutException()
200 long startTime = System.nanoTime(); in testAwait4_Timeout_BrokenBarrier()
228 long startTime = System.nanoTime(); in testAwait5_Timeout_BrokenBarrier()
400 long startTime = System.nanoTime(); in testResetAfterTimeout()
DSynchronousQueueTest.java170 long startTime = System.nanoTime(); in testTimedOffer()
214 long startTime = System.nanoTime(); in testTimedPoll()
232 long startTime = System.nanoTime(); in testTimedPollWithOffer()
237 startTime = System.nanoTime(); in testTimedPollWithOffer()
257 long startTime = System.nanoTime(); in testTimedPollWithOffer()
550 long startTime = System.nanoTime();
DLinkedBlockingDequeTest.java625 long startTime = System.nanoTime(); in testTimedOffer()
712 long startTime = System.nanoTime(); in testTimedPoll()
716 long startTime = System.nanoTime(); in testTimedPoll()
732 long t0 = System.nanoTime(); in testInterruptedTimedPoll()
736 long t0 = System.nanoTime(); in testInterruptedTimedPoll()
857 long startTime = System.nanoTime(); in testTimedOfferFirst()
1015 long startTime = System.nanoTime(); in testTimedPollFirst()
1019 long startTime = System.nanoTime(); in testTimedPollFirst()
1068 long startTime = System.nanoTime(); in testTimedPollFirstWithOfferFirst()
1091 long startTime = System.nanoTime(); in testTimedPollFirstWithOfferFirst()
[all …]
DBlockingQueueTest.java81 long startTime = System.nanoTime(); in testTimedOfferNull()
209 long startTime = System.nanoTime(); in testTimedPollWithOffer()
233 long startTime = System.nanoTime(); in testTimedPollWithOffer()
DExecutorsTest.java181 long startTime = System.nanoTime(); in testNewSingleThreadScheduledExecutor()
207 long startTime = System.nanoTime(); in testNewScheduledThreadPool()
235 long startTime = System.nanoTime(); in testUnconfigurableScheduledExecutorService()
270 long startTime = System.nanoTime(); in testTimedCallable()
DJSR166TestCase.java367 long startTime = System.nanoTime(); in delay()
374 long d = ns - (System.nanoTime() - startTime); in delay()
452 long startTime = System.nanoTime(); in assertFutureTimesOut()
598 long startTime = System.nanoTime(); in waitForThreadToEnterWaitState()
629 return NANOSECONDS.toMillis(System.nanoTime() - startNanoTime); in millisElapsedSince()
DSemaphoreTest.java65 long startTime = System.nanoTime(); in waitForQueuedThread()
79 long startTime = System.nanoTime(); in waitForQueuedThreads()
189 long startTime = System.nanoTime(); in testTryAcquire_timeout()
202 long startTime = System.nanoTime(); in testTryAcquireN_timeout()
548 long startTime = System.nanoTime(); in testReleaseAcquireDifferentThreads()
DLockSupportTest.java246 long startTime = System.nanoTime(); in testParkTimesOut()
293 long startTime = System.nanoTime(); in testGetBlocker()
DLinkedTransferQueueTest.java250 long startTime = System.nanoTime(); in testTimedPoll()
254 long startTime = System.nanoTime(); in testTimedPoll()
270 long t0 = System.nanoTime(); in testInterruptedTimedPoll()
274 long t0 = System.nanoTime(); in testInterruptedTimedPoll()
301 long t0 = System.nanoTime(); in testTimedPollAfterInterrupt()
945 long t0 = System.nanoTime(); in testTryTransfer6()
987 long t0 = System.nanoTime(); in testTryTransfer8()
DDelayQueueTest.java73 trigger = System.nanoTime() + i; in NanoDelay()
98 long n = trigger - System.nanoTime(); in getDelay()
392 long startTime = System.nanoTime(); in testTimedPoll()
396 long startTime = System.nanoTime(); in testTimedPoll()
671 assertTrue(System.nanoTime() - tt >= 0); in testDelay()
DLinkedBlockingQueueTest.java315 long startTime = System.nanoTime(); in testTimedOffer()
402 long startTime = System.nanoTime(); in testTimedPoll()
406 long startTime = System.nanoTime(); in testTimedPoll()
422 long t0 = System.nanoTime(); in testInterruptedTimedPoll()
426 long t0 = System.nanoTime(); in testInterruptedTimedPoll()
/libcore/luni/src/test/java/libcore/java/lang/ref/
DReferenceQueueTest.java53 long startNanos = System.nanoTime(); in testRemoveWithSpuriousNotify()
55 long durationNanos = System.nanoTime() - startNanos; in testRemoveWithSpuriousNotify()
75 long startNanos = System.nanoTime(); in testRemoveWithDelayedResultAndNoTimeout()
77 long durationNanos = System.nanoTime() - startNanos; in testRemoveWithDelayedResultAndNoTimeout()
85 long startNanos = System.nanoTime(); in testRemoveWithDelayedResultAndTimeout()
87 long durationNanos = System.nanoTime() - startNanos; in testRemoveWithDelayedResultAndTimeout()
/libcore/luni/src/main/java/java/util/concurrent/
DAbstractExecutorService.java132 final long deadline = timed ? System.nanoTime() + nanos : 0L; in doInvokeAny()
154 nanos = deadline - System.nanoTime(); in doInvokeAny()
240 final long deadline = System.nanoTime() + nanos; in invokeAll()
247 nanos = deadline - System.nanoTime(); in invokeAll()
264 nanos = deadline - System.nanoTime(); in invokeAll()
DExchanger.java351 long end = (timed && m == 0) ? System.nanoTime() + ns : 0L; in arenaExchange()
373 (ns = end - System.nanoTime()) > 0L)) { in arenaExchange()
460 long end = timed ? System.nanoTime() + ns : 0L; in slotExchange()
474 (!timed || (ns = end - System.nanoTime()) > 0L)) { in slotExchange()
DFutureTask.java369 final long deadline = timed ? System.nanoTime() + nanos : 0L; in awaitDone()
392 nanos = deadline - System.nanoTime(); in awaitDone()
/libcore/luni/src/main/java/java/net/
DAddressCache.java86 this.expiryNanos = System.nanoTime() + TTL_NANOS; in AddressCacheEntry()
105 if (entry != null && entry.expiryNanos >= System.nanoTime()) { in get()
/libcore/luni/src/main/java/java/lang/ref/
DReferenceQueue.java111 long startTime = System.nanoTime(); in remove()
117 long nanosElapsed = System.nanoTime() - startTime; in remove()
/libcore/luni/src/main/java/java/util/concurrent/locks/
DAbstractQueuedSynchronizer.java894 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireNanos()
906 nanosTimeout = deadline - System.nanoTime(); in doAcquireNanos()
994 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireSharedNanos()
1009 nanosTimeout = deadline - System.nanoTime(); in doAcquireSharedNanos()
2047 final long deadline = System.nanoTime() + nanosTimeout; in awaitNanos()
2058 nanosTimeout = deadline - System.nanoTime(); in awaitNanos()
2066 return deadline - System.nanoTime(); in awaitNanos()
2131 final long deadline = System.nanoTime() + nanosTimeout; in await()
2143 nanosTimeout = deadline - System.nanoTime(); in await()
DAbstractQueuedLongSynchronizer.java664 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireNanos()
676 nanosTimeout = deadline - System.nanoTime(); in doAcquireNanos()
764 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireSharedNanos()
779 nanosTimeout = deadline - System.nanoTime(); in doAcquireSharedNanos()
1819 final long deadline = System.nanoTime() + nanosTimeout; in awaitNanos()
1830 nanosTimeout = deadline - System.nanoTime(); in awaitNanos()
1838 return deadline - System.nanoTime(); in awaitNanos()
1903 final long deadline = System.nanoTime() + nanosTimeout; in await()
1915 nanosTimeout = deadline - System.nanoTime(); in await()
/libcore/libart/src/main/java/java/lang/
DThread.java784 long start = System.nanoTime(); in join()
790 long nanosElapsed = System.nanoTime() - start; in join()
1023 long start = System.nanoTime(); in sleep()
1033 long now = System.nanoTime(); in sleep()
DDaemons.java186 finalizingStartedNanos = System.nanoTime(); in doFinalize()
251 long elapsedNanos = System.nanoTime() - startNanos; in sleepFor()
/libcore/luni/src/main/java/java/util/
DRandom.java70 setSeed(System.nanoTime() + seedBase); in Random()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/apache/harmony/kernel/dalvik/
DThreadsTest.java184 long startNanos = System.nanoTime(); in run()
193 long endNanos = System.nanoTime(); in run()
/libcore/luni/src/test/java/libcore/java/lang/
DOldSystemTest.java353 long beginTime = System.nanoTime(); in test_nanoTime()
359 long endTime = System.nanoTime(); in test_nanoTime()

123