Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for elapsedNanos (0.08 sec)

  1. okhttp/src/test/java/okhttp3/CallTest.kt

        bodySource.use {
          assertFailsWith<IOException> {
            bodySource.readByte()
          }.also { expected ->
            // Timed out as expected.
            val elapsedNanos = System.nanoTime() - startNanos
            val elapsedMillis = TimeUnit.NANOSECONDS.toMillis(elapsedNanos)
            assertThat(elapsedMillis).isLessThan(500)
          }
        }
      }
    
      /** https://github.com/square/okhttp/issues/442  */
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/cache/LocalCache.java

            }
            statsCounter.recordLoadSuccess(loadingValueReference.elapsedNanos());
            storeLoadedValue(key, hash, loadingValueReference, value);
            return value;
          } finally {
            if (value == null) {
              statsCounter.recordLoadException(loadingValueReference.elapsedNanos());
              removeLoadingValue(key, hash, loadingValueReference);
            }
          }
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        val connection1 = getResponse(newRequest("/"))
        val inputStream = connection1.body.byteStream()
        inputStream.close()
        val elapsedNanos = System.nanoTime() - startNanos
        val elapsedMillis = TimeUnit.NANOSECONDS.toMillis(elapsedNanos)
    
        // If we're working correctly, this should be greater than 100ms, but less than double that.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
Back to top