Home
last modified time | relevance | path

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

123

/libcore/jsr166-tests/src/test/java/jsr166/
DSystemTest.java40 long n1 = System.nanoTime(); in testNanoTime1()
42 long n2 = System.nanoTime(); in testNanoTime1()
58 long n1 = System.nanoTime(); in testNanoTime2()
64 long n2 = System.nanoTime(); in testNanoTime2()
DCyclicBarrierTest.java42 long startTime = System.nanoTime(); in awaitNumberWaiting()
184 long startTime = System.nanoTime(); in testAwait3_TimeoutException()
211 long startTime = System.nanoTime(); in testAwait4_Timeout_BrokenBarrier()
239 long startTime = System.nanoTime(); in testAwait5_Timeout_BrokenBarrier()
411 long startTime = System.nanoTime(); in testResetAfterTimeout()
DLinkedTransferQueueTest.java275 long startTime = System.nanoTime(); in testTimedPoll()
280 startTime = System.nanoTime(); in testTimedPoll()
295 long startTime = System.nanoTime(); in testInterruptedTimedPoll()
321 long startTime = System.nanoTime(); in testTimedPollAfterInterrupt()
609 long startTime = System.nanoTime(); in testOfferInExecutor()
636 long startTime = System.nanoTime(); in testPollInExecutor()
745 long startTime = System.nanoTime(); in testWaitingConsumer()
917 long startTime = System.nanoTime(); in testTryTransfer3()
956 long startTime = System.nanoTime();
988 long startTime = System.nanoTime();
[all …]
DSynchronousQueueTest.java198 long startTime = System.nanoTime(); in testTimedOffer()
242 long startTime = System.nanoTime(); in testTimedPoll()
260 long startTime = System.nanoTime(); in testTimedPollWithOffer()
265 startTime = System.nanoTime(); in testTimedPollWithOffer()
286 long startTime = System.nanoTime(); in testTimedPollWithOffer()
573 long startTime = System.nanoTime();
DLinkedBlockingDequeTest.java652 long startTime = System.nanoTime(); in testTimedOffer()
739 long startTime = System.nanoTime(); in testTimedPoll()
743 long startTime = System.nanoTime(); in testTimedPoll()
758 long startTime = System.nanoTime(); in testInterruptedTimedPoll()
882 long startTime = System.nanoTime(); in testTimedOfferFirst()
1040 long startTime = System.nanoTime(); in testTimedPollFirst()
1044 long startTime = System.nanoTime(); in testTimedPollFirst()
1059 long startTime = System.nanoTime(); in testInterruptedTimedPollFirst()
1095 long startTime = System.nanoTime(); in testTimedPollFirstWithOfferFirst()
1118 long startTime = System.nanoTime(); in testTimedPollFirstWithOfferFirst()
[all …]
DScheduledExecutorSubclassTest.java127 final long startTime = System.nanoTime(); in testSchedule1()
146 final long startTime = System.nanoTime(); in testSchedule3()
166 final long startTime = System.nanoTime(); in testSchedule4()
188 final long startTime = System.nanoTime(); in testSchedule5()
218 final long startTime = System.nanoTime(); in testFixedRateSequence()
247 final long startTime = System.nanoTime(); in testFixedDelaySequence()
255 long now = System.nanoTime(); in testFixedDelaySequence()
434 long startTime = System.nanoTime(); in testGetCompletedTaskCount()
704 long startTime = System.nanoTime(); in testPurge()
1131 long startTime = System.nanoTime(); in testTimedInvokeAny4()
[all …]
DScheduledExecutorTest.java69 final long startTime = System.nanoTime(); in testSchedule1()
90 final long startTime = System.nanoTime(); in testSchedule3()
110 final long startTime = System.nanoTime(); in testSchedule4()
132 final long startTime = System.nanoTime(); in testSchedule5()
162 final long startTime = System.nanoTime(); in testFixedRateSequence()
191 final long startTime = System.nanoTime(); in testFixedDelaySequence()
199 long now = System.nanoTime(); in testFixedDelaySequence()
378 long startTime = System.nanoTime(); in testGetCompletedTaskCount()
652 long startTime = System.nanoTime(); in testPurge()
1080 long startTime = System.nanoTime(); in testTimedInvokeAny4()
[all …]
DBlockingQueueTest.java93 long startTime = System.nanoTime(); in testTimedOfferNull()
221 long startTime = System.nanoTime(); in testTimedPollWithOffer()
247 long startTime = System.nanoTime(); in testTimedPollWithOffer()
DDelayQueueTest.java97 trigger = System.nanoTime() + i; in NanoDelay()
122 long n = trigger - System.nanoTime(); in getDelay()
414 long startTime = System.nanoTime(); in testTimedPoll()
418 long startTime = System.nanoTime(); in testTimedPoll()
433 long startTime = System.nanoTime(); in testInterruptedTimedPoll()
705 assertTrue(System.nanoTime() - tt >= 0); in testDelay()
DSemaphoreTest.java78 long startTime = System.nanoTime(); in waitForQueuedThread()
92 long startTime = System.nanoTime(); in waitForQueuedThreads()
202 long startTime = System.nanoTime(); in testTryAcquire_timeout()
215 long startTime = System.nanoTime(); in testTryAcquireN_timeout()
566 long startTime = System.nanoTime(); in testReleaseAcquireDifferentThreads()
/libcore/luni/src/test/java/libcore/java/lang/ref/
DReferenceQueueTest.java56 long startNanos = System.nanoTime(); in testRemoveWithSpuriousNotify()
58 long durationNanos = System.nanoTime() - startNanos; in testRemoveWithSpuriousNotify()
78 long startNanos = System.nanoTime(); in testRemoveWithDelayedResultAndNoTimeout()
80 long durationNanos = System.nanoTime() - startNanos; in testRemoveWithDelayedResultAndNoTimeout()
88 long startNanos = System.nanoTime(); in testRemoveWithDelayedResultAndTimeout()
90 long durationNanos = System.nanoTime() - startNanos; in testRemoveWithDelayedResultAndTimeout()
/libcore/benchmarks/src/benchmarks/
DSmallBigIntegerBenchmark.java40 final long startNanos = System.nanoTime(); in main()
44 intermediateNanos = System.nanoTime(); in main()
56 final long finalNanos = System.nanoTime(); in main()
/libcore/luni/src/test/java/com/android/org/bouncycastle/crypto/digests/
DDigestTest.java63 long t0 = System.nanoTime(); in doTestMessageDigest()
68 long t1 = System.nanoTime(); in doTestMessageDigest()
74 long t2 = System.nanoTime(); in doTestMessageDigest()
79 long t3 = System.nanoTime(); in doTestMessageDigest()
/libcore/luni/src/main/java/libcore/icu/
DTimeZoneNames.java62 long start = System.nanoTime(); in create()
70 long nativeStart = System.nanoTime(); in create()
72 long nativeEnd = System.nanoTime(); in create()
78 long end = System.nanoTime(); in create()
/libcore/luni/src/main/java/java/util/concurrent/
DAbstractExecutorService.java140 final long deadline = timed ? System.nanoTime() + nanos : 0L; in doInvokeAny()
162 nanos = deadline - System.nanoTime(); in doInvokeAny()
236 final long deadline = System.nanoTime() + nanos; in invokeAll()
248 if (((i == 0) ? nanos : deadline - System.nanoTime()) <= 0L) in invokeAll()
256 try { f.get(deadline - System.nanoTime(), NANOSECONDS); } in invokeAll()
DExchanger.java346 long end = (timed && m == 0) ? System.nanoTime() + ns : 0L; in arenaExchange()
368 (ns = end - System.nanoTime()) > 0L)) { in arenaExchange()
455 long end = timed ? System.nanoTime() + ns : 0L; in slotExchange()
469 (!timed || (ns = end - System.nanoTime()) > 0L)) { in slotExchange()
DFutureTask.java404 startTime = System.nanoTime(); in awaitDone()
409 long elapsed = System.nanoTime() - startTime; 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/
DFinalizerReference.java148 final long startTime = System.nanoTime(); in awaitFinalization()
153 final long currentTime = System.nanoTime(); in awaitFinalization()
/libcore/ojluni/src/main/java/java/lang/ref/
DReferenceQueue.java186 long start = (timeout == 0) ? 0 : System.nanoTime(); in remove()
192 long end = System.nanoTime(); in remove()
/libcore/luni/src/main/java/java/util/concurrent/locks/
DAbstractQueuedLongSynchronizer.java450 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireNanos()
460 nanosTimeout = deadline - System.nanoTime(); in doAcquireNanos()
546 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireSharedNanos()
559 nanosTimeout = deadline - System.nanoTime(); in doAcquireSharedNanos()
1597 final long deadline = System.nanoTime() + nanosTimeout; in awaitNanos()
1611 nanosTimeout = deadline - System.nanoTime(); in awaitNanos()
1619 long remaining = deadline - System.nanoTime(); // avoid overflow in awaitNanos()
1685 final long deadline = System.nanoTime() + nanosTimeout; in await()
1699 nanosTimeout = deadline - System.nanoTime(); in await()
DAbstractQueuedSynchronizer.java918 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireNanos()
928 nanosTimeout = deadline - System.nanoTime(); in doAcquireNanos()
1014 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireSharedNanos()
1027 nanosTimeout = deadline - System.nanoTime(); in doAcquireSharedNanos()
2066 final long deadline = System.nanoTime() + nanosTimeout; in awaitNanos()
2080 nanosTimeout = deadline - System.nanoTime(); in awaitNanos()
2088 long remaining = deadline - System.nanoTime(); // avoid overflow in awaitNanos()
2154 final long deadline = System.nanoTime() + nanosTimeout; in await()
2168 nanosTimeout = deadline - System.nanoTime(); in await()
/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.java364 long beginTime = System.nanoTime(); in test_nanoTime()
370 long endTime = System.nanoTime(); in test_nanoTime()
/libcore/libart/src/main/java/java/lang/
DDaemons.java305 long startNanos = System.nanoTime(); in sleepFor()
307 long elapsedNanos = System.nanoTime() - startNanos; in sleepFor()

123