/libcore/jsr166-tests/src/test/java/jsr166/ |
D | SystemTest.java | 30 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()
|
D | CyclicBarrierTest.java | 31 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()
|
D | SynchronousQueueTest.java | 170 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();
|
D | LinkedBlockingDequeTest.java | 625 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 …]
|
D | BlockingQueueTest.java | 81 long startTime = System.nanoTime(); in testTimedOfferNull() 209 long startTime = System.nanoTime(); in testTimedPollWithOffer() 233 long startTime = System.nanoTime(); in testTimedPollWithOffer()
|
D | ExecutorsTest.java | 181 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()
|
D | JSR166TestCase.java | 367 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()
|
D | SemaphoreTest.java | 65 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()
|
D | LockSupportTest.java | 246 long startTime = System.nanoTime(); in testParkTimesOut() 293 long startTime = System.nanoTime(); in testGetBlocker()
|
D | LinkedTransferQueueTest.java | 250 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()
|
D | DelayQueueTest.java | 73 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()
|
D | LinkedBlockingQueueTest.java | 315 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/ |
D | ReferenceQueueTest.java | 53 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/ |
D | AbstractExecutorService.java | 132 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()
|
D | Exchanger.java | 351 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()
|
D | FutureTask.java | 369 final long deadline = timed ? System.nanoTime() + nanos : 0L; in awaitDone() 392 nanos = deadline - System.nanoTime(); in awaitDone()
|
/libcore/luni/src/main/java/java/net/ |
D | AddressCache.java | 86 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/ |
D | ReferenceQueue.java | 111 long startTime = System.nanoTime(); in remove() 117 long nanosElapsed = System.nanoTime() - startTime; in remove()
|
/libcore/luni/src/main/java/java/util/concurrent/locks/ |
D | AbstractQueuedSynchronizer.java | 894 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()
|
D | AbstractQueuedLongSynchronizer.java | 664 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/ |
D | Thread.java | 784 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()
|
D | Daemons.java | 186 finalizingStartedNanos = System.nanoTime(); in doFinalize() 251 long elapsedNanos = System.nanoTime() - startNanos; in sleepFor()
|
/libcore/luni/src/main/java/java/util/ |
D | Random.java | 70 setSeed(System.nanoTime() + seedBase); in Random()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/apache/harmony/kernel/dalvik/ |
D | ThreadsTest.java | 184 long startNanos = System.nanoTime(); in run() 193 long endNanos = System.nanoTime(); in run()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldSystemTest.java | 353 long beginTime = System.nanoTime(); in test_nanoTime() 359 long endTime = System.nanoTime(); in test_nanoTime()
|