Searched refs:elapsedNanos (Results 1 – 8 of 8) sorted by relevance
/external/mockito/src/test/java/org/mockitoutil/ |
D | Stopwatch.java | 46 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/ |
D | Stopwatch.java | 79 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/ |
D | Stopwatch.java | 78 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/ |
D | MockWebServerTest.java | 208 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/ |
D | Spdy3ConnectionTest.java | 907 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/ |
D | CallTest.java | 750 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()
|
D | URLConnectionTest.java | 1343 long elapsedNanos = System.nanoTime() - startNanos; in streamDiscardingIsTimely() local 1344 long elapsedMillis = NANOSECONDS.toMillis(elapsedNanos); in streamDiscardingIsTimely()
|
/external/guava/guava/src/com/google/common/cache/ |
D | LocalCache.java | 2352 statsCounter.recordLoadSuccess(loadingValueReference.elapsedNanos()); in getAndRecordStats() 2357 statsCounter.recordLoadException(loadingValueReference.elapsedNanos()); in getAndRecordStats() 3551 public long elapsedNanos() { in elapsedNanos() method
|