Home
last modified time | relevance | path

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

123456

/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DNanoTimeGranularityTester.java38 long first = System.nanoTime(); in testNanoTimeGranularity()
39 long second = System.nanoTime(); in testNanoTimeGranularity()
40 long third = System.nanoTime(); in testNanoTimeGranularity()
41 long fourth = System.nanoTime(); in testNanoTimeGranularity()
42 long fifth = System.nanoTime(); in testNanoTimeGranularity()
43 long sixth = System.nanoTime(); in testNanoTimeGranularity()
44 long seventh = System.nanoTime(); in testNanoTimeGranularity()
45 long eighth = System.nanoTime(); in testNanoTimeGranularity()
46 long ninth = System.nanoTime(); in testNanoTimeGranularity()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowSystemClock.java21 private static long nanoTime = 0; field in ShadowSystemClock
38 nanoTime = millis * MILLIS_PER_NANO; in sleep()
51 nanoTime = millis * MILLIS_PER_NANO; in setCurrentTimeMillis()
95 return nanoTime / MILLIS_PER_NANO; in currentTimeMillis()
104 public static long nanoTime() { in nanoTime() method in ShadowSystemClock
105 return nanoTime; in nanoTime()
108 public static void setNanoTime(long nanoTime) { in setNanoTime() argument
109 ShadowSystemClock.nanoTime = nanoTime; in setNanoTime()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/internal/
DTimestampConverter.java30 private final long nanoTime; field in TimestampConverter
43 public Timestamp convertNanoTime(long nanoTime) { in convertNanoTime() argument
44 return timestamp.addNanos(nanoTime - this.nanoTime); in convertNanoTime()
47 private TimestampConverter(Timestamp timestamp, long nanoTime) { in TimestampConverter() argument
49 this.nanoTime = nanoTime; in TimestampConverter()
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/
DKeepAliveEnforcerTest.java108 ticker.nanoTime += 1; in permitInRateWhileActive()
118 ticker.nanoTime += 1; in permitInRateWhileIdle()
129 ticker.nanoTime += KeepAliveEnforcer.IMPLICIT_PERMIT_TIME_NANOS; in implicitPermittedWhileIdle()
140 ticker.nanoTime += KeepAliveEnforcer.IMPLICIT_PERMIT_TIME_NANOS; in implicitOverridesWhileActive()
151 ticker.nanoTime += KeepAliveEnforcer.IMPLICIT_PERMIT_TIME_NANOS; in implicitOverridesWhileIdle()
157 ticker.nanoTime = Long.MAX_VALUE; in permitsWhenTimeOverflows()
164 ticker.nanoTime++; in permitsWhenTimeOverflows()
187 ticker.nanoTime += 1; in resetCounters_resetsPingTime()
199 long before = System.nanoTime(); in systemTickerIsSystemNanoTime()
200 long returned = KeepAliveEnforcer.SystemTicker.INSTANCE.nanoTime(); in systemTickerIsSystemNanoTime()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/stress/
DStressTest.java43 long time1 = System.nanoTime(); in testPerformance()
45 long time2 = System.nanoTime(); in testPerformance()
50 time1 = System.nanoTime(); in testPerformance()
52 time2 = System.nanoTime(); in testPerformance()
60 time1 = System.nanoTime(); in testPerformance()
64 time2 = System.nanoTime(); in testPerformance()
76 time1 = System.nanoTime(); in testPerformance()
81 time2 = System.nanoTime(); in testPerformance()
DStressEmitterTest.java41 long time1 = System.nanoTime(); in testPerformance()
43 long time2 = System.nanoTime(); in testPerformance()
50 time1 = System.nanoTime(); in testPerformance()
54 time2 = System.nanoTime(); in testPerformance()
65 time1 = System.nanoTime(); in testPerformance()
70 time2 = System.nanoTime(); in testPerformance()
/external/guava/guava/src/com/google/common/util/concurrent/
DUninterruptibles.java80 long end = System.nanoTime() + remainingNanos; in awaitUninterruptibly()
88 remainingNanos = end - System.nanoTime(); in awaitUninterruptibly()
168 long end = System.nanoTime() + remainingNanos; in getUninterruptibly()
176 remainingNanos = end - System.nanoTime(); in getUninterruptibly()
197 long end = System.nanoTime() + remainingNanos; in joinUninterruptibly()
205 remainingNanos = end - System.nanoTime(); in joinUninterruptibly()
271 long end = System.nanoTime() + remainingNanos; in sleepUninterruptibly()
279 remainingNanos = end - System.nanoTime(); in sleepUninterruptibly()
311 long end = System.nanoTime() + remainingNanos; in tryAcquireUninterruptibly()
319 remainingNanos = end - System.nanoTime(); in tryAcquireUninterruptibly()
DMonitor.java378 long deadline = System.nanoTime() + timeoutNanos; in enter()
386 timeoutNanos = deadline - System.nanoTime(); in enter()
479 long deadline = System.nanoTime() + timeoutNanos; in enterWhen()
483 timeoutNanos = deadline - System.nanoTime(); in enterWhen()
518 long deadline = System.nanoTime() + timeoutNanos; in enterWhenUninterruptibly()
533 timeoutNanos = deadline - System.nanoTime(); in enterWhenUninterruptibly()
546 timeoutNanos = deadline - System.nanoTime(); in enterWhenUninterruptibly()
739 long deadline = System.nanoTime() + timeoutNanos; in waitForUninterruptibly()
751 timeoutNanos = deadline - System.nanoTime(); in waitForUninterruptibly()
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DCancelCall.java36 final long startNanos = System.nanoTime(); in run()
42 System.out.printf("%.2f Canceling call.%n", (System.nanoTime() - startNanos) / 1e9f); in run()
44 System.out.printf("%.2f Canceled call.%n", (System.nanoTime() - startNanos) / 1e9f); in run()
49 System.out.printf("%.2f Executing call.%n", (System.nanoTime() - startNanos) / 1e9f); in run()
52 (System.nanoTime() - startNanos) / 1e9f, response); in run()
55 (System.nanoTime() - startNanos) / 1e9f, e); in run()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DSimpleTimeLimiterTest.java59 long start = System.nanoTime(); in testGoodCallableWithEnoughTime()
72 long start = System.nanoTime(); in testGoodCallableWithNotEnoughTime()
88 long start = System.nanoTime(); in testBadCallableWithEnoughTime()
104 long start = System.nanoTime(); in testBadCallableWithNotEnoughTime()
123 long start = System.nanoTime(); in testGoodMethodWithEnoughTime()
133 long start = System.nanoTime(); in testGoodMethodWithNotEnoughTime()
151 long start = System.nanoTime(); in testBadMethodWithEnoughTime()
164 long start = System.nanoTime(); in testBadMethodWithNotEnoughTime()
175 long nanos = System.nanoTime() - startNanos; in assertTheCallTookBetween()
/external/grpc-grpc-java/netty/src/main/java/io/grpc/netty/
DMaxConnectionIdleManager.java33 public long nanoTime() {
34 return System.nanoTime();
67 nextIdleMonitorTime = ticker.nanoTime() + maxConnectionIdleInNanos; in start()
76 shutdownTask, nextIdleMonitorTime - ticker.nanoTime(), TimeUnit.NANOSECONDS); in start()
114 nextIdleMonitorTime = ticker.nanoTime() + maxConnectionIdleInNanos; in onTransportIdle()
128 long nanoTime(); in nanoTime() method
DKeepAliveEnforcer.java51 this.epoch = ticker.nanoTime(); in KeepAliveEnforcer()
58 long now = ticker.nanoTime(); in pingAcceptable()
105 long nanoTime(); in nanoTime() method
113 public long nanoTime() { in nanoTime() method in KeepAliveEnforcer.SystemTicker
114 return System.nanoTime(); in nanoTime()
/external/guava/guava-testlib/src/com/google/common/testing/
DGcFinalization.java135 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in awaitDone()
154 } while (System.nanoTime() - deadline < 0); in awaitDone()
170 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in await()
184 } while (System.nanoTime() - deadline < 0); in await()
223 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in awaitDone()
235 } while (System.nanoTime() - deadline < 0); in awaitDone()
/external/junit/src/main/java/org/junit/rules/
DStopwatch.java132 currentEndNanos = clock.nanoTime(); in getNanos()
139 startNanos = clock.nanoTime(); in starting()
144 endNanos = clock.nanoTime(); in stopping()
179 public long nanoTime() { in nanoTime() method in Stopwatch.Clock
180 return System.nanoTime(); in nanoTime()
/external/grpc-grpc-java/benchmarks/src/main/java/io/grpc/benchmarks/driver/
DLoadClient.java314 long now = System.nanoTime(); in run()
316 delay(System.nanoTime() - now); in run()
342 long now = System.nanoTime(); in run()
357 delay(System.nanoTime() - now); in run()
385 long now = System.nanoTime(); in run()
389 delay(System.nanoTime() - now); in run()
396 now = System.nanoTime(); in run()
432 now = System.nanoTime(); in run()
436 delay(System.nanoTime() - now); in run()
465 long now = System.nanoTime(); in run()
[all …]
/external/grpc-grpc-java/interop-testing/src/test/java/io/grpc/testing/integration/
DProxyTest.java82 long start = System.nanoTime(); in smallLatency()
85 long stop = System.nanoTime(); in smallLatency()
112 long start = System.nanoTime(); in bigLatency()
115 long stop = System.nanoTime(); in bigLatency()
138 long start = System.nanoTime(); in smallBandwidth()
140 long stop = System.nanoTime(); in smallBandwidth()
162 long start = System.nanoTime(); in largeBandwidth()
164 long stop = System.nanoTime(); in largeBandwidth()
/external/grpc-grpc-java/benchmarks/src/main/java/io/grpc/benchmarks/qps/
DOpenLoopClient.java94 final long start = System.nanoTime(); in run()
96 final long end = System.nanoTime(); in run()
161 long now = System.nanoTime(); in call()
165 now = System.nanoTime(); in call()
182 private final long start = System.nanoTime(); in newRpc()
197 final long end = System.nanoTime(); in newRpc()
204 long now = System.nanoTime(); in waitForRpcsToComplete()
207 now = System.nanoTime(); in waitForRpcsToComplete()
/external/owasp/sanitizer/src/tests/org/owasp/html/
DBenchmark.java82 t0 = System.nanoTime(); in main()
86 t1 = System.nanoTime(); in main()
91 t2 = System.nanoTime(); in main()
95 t3 = System.nanoTime(); in main()
100 t4 = System.nanoTime(); in main()
104 t5 = System.nanoTime(); in main()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DXLocaleDistanceTest.java80 long temp = System.nanoTime(); in testTiming()
83 likelyTime += System.nanoTime() - temp; in testTiming()
85 temp = System.nanoTime(); in testTiming()
88 oldTimeMinusLikely += System.nanoTime() - temp; in testTiming()
90 temp = System.nanoTime(); in testTiming()
93 newLikelyTime += System.nanoTime() - temp; in testTiming()
95 temp = System.nanoTime(); in testTiming()
98 newTimeMinusLikely += System.nanoTime() - temp; in testTiming()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DXLocaleDistanceTest.java89 long temp = System.nanoTime(); in testTiming()
92 likelyTime += System.nanoTime()-temp; in testTiming()
94 temp = System.nanoTime(); in testTiming()
97 oldTimeMinusLikely += System.nanoTime()-temp; in testTiming()
99 temp = System.nanoTime(); in testTiming()
102 newLikelyTime += System.nanoTime()-temp; in testTiming()
104 temp = System.nanoTime(); in testTiming()
107 newTimeMinusLikely += System.nanoTime()-temp; in testTiming()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DXLocaleDistanceTest.java86 long temp = System.nanoTime(); in testTiming()
89 likelyTime += System.nanoTime()-temp; in testTiming()
91 temp = System.nanoTime(); in testTiming()
94 oldTimeMinusLikely += System.nanoTime()-temp; in testTiming()
96 temp = System.nanoTime(); in testTiming()
99 newLikelyTime += System.nanoTime()-temp; in testTiming()
101 temp = System.nanoTime(); in testTiming()
104 newTimeMinusLikely += System.nanoTime()-temp; in testTiming()
/external/slf4j/slf4j-api/src/test/java/org/slf4j/helpers/
DMessageFormatterPerfTest.java73 long start = System.nanoTime(); in slf4jMessageFormatter_OneArg()
82 long end = System.nanoTime(); in slf4jMessageFormatter_OneArg()
87 long start = System.nanoTime(); in slf4jMessageFormatter_TwoArg()
94 long end = System.nanoTime(); in slf4jMessageFormatter_TwoArg()
/external/slf4j/jul-to-slf4j/src/test/java/org/slf4j/bridge/
DSLF4JBridgeHandlerPerfTest.java80 long start = System.nanoTime(); in julLoggerLoop()
84 long end = System.nanoTime(); in julLoggerLoop()
89 long start = System.nanoTime(); in slf4jLoggerLoop()
93 long end = System.nanoTime(); in slf4jLoggerLoop()
/external/mockito/src/test/java/org/mockitoutil/
DStopwatch.java12 import static java.lang.System.nanoTime;
42 startNanos = nanoTime(); in start()
64 return nanoTime() - startNanos; in elapsedNanos()
/external/guava/guava-bootstrap/src/java/util/concurrent/
DAbstractExecutorService.java52 long lastTime = (timed)? System.nanoTime() : 0; in doInvokeAny()
73 long now = System.nanoTime(); in doInvokeAny()
162 long lastTime = System.nanoTime(); in invokeAll()
167 long now = System.nanoTime(); in invokeAll()
185 long now = System.nanoTime(); in invokeAll()

123456