Home
last modified time | relevance | path

Searched refs:elapsedNanos (Results 1 – 16 of 16) sorted by relevance

/external/mockito/src/test/java/org/mockitoutil/
DStopwatch.java46 long elapsedNanos = elapsedNanos(); in assertElapsedTimeIsMoreThan() local
49 if (elapsedNanos <= expectedNanos) in assertElapsedTimeIsMoreThan()
50 … fail("Expected that more than %dms elapsed! But was: %dms", expectedNanos, elapsedNanos); in assertElapsedTimeIsMoreThan()
54 long elapsedNanos = elapsedNanos(); in assertElapsedTimeIsLessThan() local
57 if (elapsedNanos >= expectedNanos) in assertElapsedTimeIsLessThan()
58 … fail("Expected that less than %dms elapsed! But was: %dms", expectedNanos, elapsedNanos); in assertElapsedTimeIsLessThan()
61 private long elapsedNanos() { in elapsedNanos() method in Stopwatch
67 private static void fail(String message, long expectedNanos, long elapsedNanos) { in fail() argument
68 …ionError(format(message, NANOSECONDS.toMillis(expectedNanos), NANOSECONDS.toMillis(elapsedNanos))); in fail()
/external/guava/guava/src/com/google/common/base/
DStopwatch.java79 private long elapsedNanos; field in Stopwatch
177 elapsedNanos += tick - startTick; in stop()
188 elapsedNanos = 0; in reset()
193 private long elapsedNanos() { in elapsedNanos() method in Stopwatch
194 return isRunning ? ticker.read() - startTick + elapsedNanos : elapsedNanos; in elapsedNanos()
208 return desiredUnit.convert(elapsedNanos(), NANOSECONDS); in elapsed()
216 long nanos = elapsedNanos(); in toString()
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/
DStopwatch.java78 private long elapsedNanos; field in Stopwatch
176 elapsedNanos += tick - startTick; in stop()
187 elapsedNanos = 0; in reset()
192 private long elapsedNanos() { in elapsedNanos() method in Stopwatch
193 return isRunning ? ticker.read() - startTick + elapsedNanos : elapsedNanos; in elapsedNanos()
207 return desiredUnit.convert(elapsedNanos(), NANOSECONDS); in elapsed()
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/
DMockWebServerTest.java208 long elapsedNanos = System.nanoTime() - startNanos; in throttleRequest() local
209 long elapsedMillis = NANOSECONDS.toMillis(elapsedNanos); in throttleRequest()
234 long elapsedNanos = System.nanoTime() - startNanos;
235 long elapsedMillis = NANOSECONDS.toMillis(elapsedNanos);
251 long elapsedNanos = System.nanoTime() - startNanos;
252 long elapsedMillis = NANOSECONDS.toMillis(elapsedNanos);
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DSpdy3ConnectionTest.java907 long elapsedNanos = System.nanoTime() - startNanos;
909 assertEquals(500d, TimeUnit.NANOSECONDS.toMillis(elapsedNanos), 200d /* 200ms delta */);
935 long elapsedNanos = System.nanoTime() - startNanos;
937 assertEquals(500d, TimeUnit.NANOSECONDS.toMillis(elapsedNanos), 200d /* 200ms delta */);
973 long elapsedNanos = System.nanoTime() - startNanos;
975 assertEquals(500d, TimeUnit.NANOSECONDS.toMillis(elapsedNanos), 200d /* 200ms delta */);
1014 long elapsedNanos = System.nanoTime() - startNanos;
1016 assertEquals(500d, TimeUnit.NANOSECONDS.toMillis(elapsedNanos), 200d /* 200ms delta */);
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DCallTest.java750 long elapsedNanos = System.nanoTime() - startNanos; in timeoutsUpdatedOnReusedConnections()
751 long elapsedMillis = TimeUnit.NANOSECONDS.toMillis(elapsedNanos); in timeoutsUpdatedOnReusedConnections()
1608 long elapsedNanos = System.nanoTime() - startNanos; in cancelDuringConnect() local
1609 assertEquals(cancelDelayMillis, TimeUnit.NANOSECONDS.toMillis(elapsedNanos), 100f); in cancelDuringConnect()
DURLConnectionTest.java1343 long elapsedNanos = System.nanoTime() - startNanos; in streamDiscardingIsTimely() local
1344 long elapsedMillis = NANOSECONDS.toMillis(elapsedNanos); in streamDiscardingIsTimely()
/external/guava/guava/src/com/google/common/cache/
DLocalCache.java2352 statsCounter.recordLoadSuccess(loadingValueReference.elapsedNanos()); in getAndRecordStats()
2357 statsCounter.recordLoadException(loadingValueReference.elapsedNanos()); in getAndRecordStats()
3551 public long elapsedNanos() { in elapsedNanos() method
/external/owasp/sanitizer/distrib/lib/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/owasp/sanitizer/lib/guava-libraries/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/guice/lib/
Dguava-19.0.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
/external/cldr/tools/java/libs/
Dguava.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
/external/v8/src/inspector/build/closure-compiler/
Dclosure-compiler.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/google/ com/ ...
/external/conscrypt/benchmark-android/
Dvogar.jarMETA-INF/ META-INF/MANIFEST.MF vogar/ vogar/TestProperties.class TestProperties ...
/external/error_prone/error_prone/
Derror_prone_core-2.3.2-with-dependencies.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/services/ META- ...
/external/dagger2/lib/
Dgoogle-java-format-0.1-20151017.042846-2.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...