Home
last modified time | relevance | path

Searched refs:elapsedNanos (Results 1 – 8 of 8) 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