/external/caliper/caliper/src/main/java/com/google/caliper/runner/ |
D | NanoTimeGranularityTester.java | 38 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/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/internal/ |
D | TimestampConverter.java | 30 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/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowSystemClock.java | 21 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/guava/android/guava/src/com/google/common/util/concurrent/ |
D | Uninterruptibles.java | 82 long end = System.nanoTime() + remainingNanos; in awaitUninterruptibly() 90 remainingNanos = end - System.nanoTime(); in awaitUninterruptibly() 112 long end = System.nanoTime() + remainingNanos; in awaitUninterruptibly() 119 remainingNanos = end - System.nanoTime(); in awaitUninterruptibly() 160 long end = System.nanoTime() + remainingNanos; in joinUninterruptibly() 168 remainingNanos = end - System.nanoTime(); in joinUninterruptibly() 239 long end = System.nanoTime() + remainingNanos; in getUninterruptibly() 247 remainingNanos = end - System.nanoTime(); in getUninterruptibly() 311 long end = System.nanoTime() + remainingNanos; in sleepUninterruptibly() 319 remainingNanos = end - System.nanoTime(); in sleepUninterruptibly() [all …]
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/ |
D | EventLoop.common.kt | 213 return (nextDelayedTask.nanoTime - nanoTime()).coerceAtLeast(0) 232 val now = nanoTime() in scheduleResumeAfterDelay() 243 val now = nanoTime() in scheduleInvokeOnTimeout() 258 val now = nanoTime() in processNextEvent() 387 val now = nanoTime() in rescheduleAllDelayed() 406 @JvmField var nanoTime: Long variable in kotlinx.coroutines.EventLoopImplBase.DelayedTask 420 val dTime = nanoTime - other.nanoTime in compareTo() 428 fun timeToExecute(now: Long): Boolean = now - nanoTime >= 0L in timeToExecute() 454 val firstTime = firstTask.nanoTime in timeToExecute() 467 if (nanoTime - delayed.timeNow < 0) nanoTime = delayed.timeNow in timeToExecute() [all …]
|
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/ |
D | KeepAliveEnforcerTest.java | 108 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/ |
D | StressTest.java | 43 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()
|
D | StressEmitterTest.java | 41 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/ |
D | Uninterruptibles.java | 97 long end = System.nanoTime() + remainingNanos; in awaitUninterruptibly() 105 remainingNanos = end - System.nanoTime(); in awaitUninterruptibly() 139 long end = System.nanoTime() + remainingNanos; in awaitUninterruptibly() 146 remainingNanos = end - System.nanoTime(); in awaitUninterruptibly() 199 long end = System.nanoTime() + remainingNanos; in joinUninterruptibly() 207 remainingNanos = end - System.nanoTime(); in joinUninterruptibly() 305 long end = System.nanoTime() + remainingNanos; in getUninterruptibly() 313 remainingNanos = end - System.nanoTime(); in getUninterruptibly() 389 long end = System.nanoTime() + remainingNanos; in sleepUninterruptibly() 397 remainingNanos = end - System.nanoTime(); in sleepUninterruptibly() [all …]
|
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
D | CancelCall.java | 36 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/grpc-grpc-java/netty/src/main/java/io/grpc/netty/ |
D | MaxConnectionIdleManager.java | 33 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
|
D | KeepAliveEnforcer.java | 51 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/android/guava-testlib/src/com/google/common/testing/ |
D | GcFinalization.java | 142 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in awaitDone() 159 } while (System.nanoTime() - deadline < 0); in awaitDone() 174 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in awaitDone() 186 } while (System.nanoTime() - deadline < 0); in awaitDone() 202 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in await() 216 } while (System.nanoTime() - deadline < 0); in await()
|
/external/guava/guava-testlib/src/com/google/common/testing/ |
D | GcFinalization.java | 142 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in awaitDone() 159 } while (System.nanoTime() - deadline < 0); in awaitDone() 174 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in awaitDone() 186 } while (System.nanoTime() - deadline < 0); in awaitDone() 202 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in await() 216 } while (System.nanoTime() - deadline < 0); in await()
|
/external/junit/src/main/java/org/junit/rules/ |
D | Stopwatch.java | 132 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/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | LocaleDistanceTest.java | 90 long temp = System.nanoTime(); in testTiming() 93 likelyTime += System.nanoTime()-temp; in testTiming() 95 temp = System.nanoTime(); in testTiming() 98 oldTimeMinusLikely += System.nanoTime()-temp; in testTiming() 100 temp = System.nanoTime(); in testTiming() 103 newLikelyTime += System.nanoTime()-temp; in testTiming() 105 temp = System.nanoTime(); in testTiming() 108 newTimeMinusLikely += System.nanoTime()-temp; in testTiming()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | LocaleDistanceTest.java | 87 long temp = System.nanoTime(); in testTiming() 90 likelyTime += System.nanoTime()-temp; in testTiming() 92 temp = System.nanoTime(); in testTiming() 95 oldTimeMinusLikely += System.nanoTime()-temp; in testTiming() 97 temp = System.nanoTime(); in testTiming() 100 newLikelyTime += System.nanoTime()-temp; in testTiming() 102 temp = System.nanoTime(); in testTiming() 105 newTimeMinusLikely += System.nanoTime()-temp; in testTiming()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/ |
D | TimeSource.kt | 15 fun nanoTime(): Long in currentTimeMillis() method 34 internal actual inline fun nanoTime(): Long = in currentTimeMillis() method 35 timeSource?.nanoTime() ?: System.nanoTime() in currentTimeMillis()
|
/external/grpc-grpc-java/benchmarks/src/main/java/io/grpc/benchmarks/driver/ |
D | LoadClient.java | 314 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/ |
D | ProxyTest.java | 82 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/ |
D | OpenLoopClient.java | 94 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/ |
D | Benchmark.java | 82 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/ |
D | XLocaleDistanceTest.java | 80 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/okio/okio/src/jvmTest/kotlin/okio/ |
D | PipeKotlinTest.kt | 320 val underlyingOriginalDeadline = System.nanoTime() + biggerDeadlineNanos in honorsPipeSinkDeadlineOnWritingWhenItIsSmaller() 322 pipe.sink.timeout().deadlineNanoTime(System.nanoTime() + smallerDeadlineNanos) in honorsPipeSinkDeadlineOnWritingWhenItIsSmaller() 339 pipe.sink.timeout().deadlineNanoTime(System.nanoTime() + deadlineNanos) in honorsPipeSinkDeadlineOnWritingWhenUnderlyingSinkHasNoDeadline() 353 val underlyingOriginalDeadline = System.nanoTime() + smallerDeadlineNanos in honorsUnderlyingSinkDeadlineOnWritingWhenItIsSmaller() 355 pipe.sink.timeout().deadlineNanoTime(System.nanoTime() + biggerDeadlineNanos) in honorsUnderlyingSinkDeadlineOnWritingWhenItIsSmaller() 371 val underlyingOriginalDeadline = System.nanoTime() + deadlineNanos in honorsUnderlyingSinkDeadlineOnWritingWhenPipeSinkHasNoDeadline() 387 val underlyingOriginalDeadline = System.nanoTime() + biggerDeadlineNanos in honorsPipeSinkDeadlineOnFlushingWhenItIsSmaller() 389 pipe.sink.timeout().deadlineNanoTime(System.nanoTime() + smallerDeadlineNanos) in honorsPipeSinkDeadlineOnFlushingWhenItIsSmaller() 406 pipe.sink.timeout().deadlineNanoTime(System.nanoTime() + deadlineNanos) in honorsPipeSinkDeadlineOnFlushingWhenUnderlyingSinkHasNoDeadline() 420 val underlyingOriginalDeadline = System.nanoTime() + smallerDeadlineNanos in honorsUnderlyingSinkDeadlineOnFlushingWhenItIsSmaller() [all …]
|
/external/slf4j/slf4j-api/src/test/java/org/slf4j/helpers/ |
D | MessageFormatterPerfTest.java | 73 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()
|