Home
last modified time | relevance | path

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

123

/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestChronologyPerf.java43 long start = System.nanoTime(); in test_chronologyGetAvailablePerf()
45 long end = System.nanoTime(); in test_chronologyGetAvailablePerf()
49 start = System.nanoTime(); in test_chronologyGetAvailablePerf()
51 end = System.nanoTime(); in test_chronologyGetAvailablePerf()
55 start = System.nanoTime(); in test_chronologyGetAvailablePerf()
57 end = System.nanoTime(); in test_chronologyGetAvailablePerf()
/libcore/benchmarks/src/benchmarks/regression/
DSimpleDateFormatBenchmark.java96 start = System.nanoTime(); in main()
98 end = System.nanoTime(); in main()
105 start = System.nanoTime(); in main()
107 end = System.nanoTime(); in main()
110 start = System.nanoTime(); in main()
112 end = System.nanoTime(); in main()
/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.java276 long startTime = System.nanoTime(); in testTimedPoll()
281 startTime = System.nanoTime(); in testTimedPoll()
296 long startTime = System.nanoTime(); in testInterruptedTimedPoll()
322 long startTime = System.nanoTime(); in testTimedPollAfterInterrupt()
610 long startTime = System.nanoTime(); in testOfferInExecutor()
637 long startTime = System.nanoTime(); in testPollInExecutor()
746 long startTime = System.nanoTime(); in testWaitingConsumer()
923 long startTime = System.nanoTime(); in testTryTransfer3()
962 long startTime = System.nanoTime();
994 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()
/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/ojluni/src/main/java/java/lang/
DProcess.java189 long startTime = System.nanoTime(); in waitFor()
201 rem = unit.toNanos(timeout) - (System.nanoTime() - startTime); in waitFor()
/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/ojluni/src/main/java/java/util/concurrent/
DAbstractExecutorService.java169 final long deadline = timed ? System.nanoTime() + nanos : 0L; in doInvokeAny()
191 nanos = deadline - System.nanoTime(); in doInvokeAny()
265 final long deadline = System.nanoTime() + nanos; in invokeAll()
277 if (((i == 0) ? nanos : deadline - System.nanoTime()) <= 0L) in invokeAll()
285 try { f.get(deadline - System.nanoTime(), NANOSECONDS); } in invokeAll()
DExchanger.java375 long end = (timed && m == 0) ? System.nanoTime() + ns : 0L; in arenaExchange()
397 (ns = end - System.nanoTime()) > 0L)) { in arenaExchange()
484 long end = timed ? System.nanoTime() + ns : 0L; in slotExchange()
498 (!timed || (ns = end - System.nanoTime()) > 0L)) { in slotExchange()
/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.java156 final long startTime = System.nanoTime(); in awaitFinalization()
161 final long currentTime = System.nanoTime(); in awaitFinalization()
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DAbstractQueuedLongSynchronizer.java479 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireNanos()
489 nanosTimeout = deadline - System.nanoTime(); in doAcquireNanos()
575 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireSharedNanos()
588 nanosTimeout = deadline - System.nanoTime(); in doAcquireSharedNanos()
1626 final long deadline = System.nanoTime() + nanosTimeout; in awaitNanos()
1640 nanosTimeout = deadline - System.nanoTime(); in awaitNanos()
1648 long remaining = deadline - System.nanoTime(); // avoid overflow in awaitNanos()
1714 final long deadline = System.nanoTime() + nanosTimeout; in await()
1728 nanosTimeout = deadline - System.nanoTime(); in await()
DAbstractQueuedSynchronizer.java945 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireNanos()
955 nanosTimeout = deadline - System.nanoTime(); in doAcquireNanos()
1041 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireSharedNanos()
1054 nanosTimeout = deadline - System.nanoTime(); in doAcquireSharedNanos()
2090 final long deadline = System.nanoTime() + nanosTimeout; in awaitNanos()
2104 nanosTimeout = deadline - System.nanoTime(); in awaitNanos()
2112 long remaining = deadline - System.nanoTime(); // avoid overflow in awaitNanos()
2178 final long deadline = System.nanoTime() + nanosTimeout; in await()
2192 nanosTimeout = deadline - System.nanoTime(); in await()
/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/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.java362 long beginTime = System.nanoTime(); in test_nanoTime()
368 long endTime = System.nanoTime(); in test_nanoTime()

123