Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for nanotime1 (0.18 sec)

  1. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        peer.sendFrame().ping(true, Http2Connection.AWAIT_PING, 5)
        peer.play()
    
        // Play it back.
        val connection = connect(peer)
        val pingAtNanos = System.nanoTime()
        connection.writePingAndAwaitPong()
        val elapsedNanos = System.nanoTime() - pingAtNanos
        assertThat(elapsedNanos).isGreaterThan(0L)
        assertThat(elapsedNanos).isLessThan(TimeUnit.SECONDS.toNanos(1))
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

        Object localValue = value;
        if (localValue != null & !(localValue instanceof SetFuture)) {
          return getDoneValue(localValue);
        }
        // we delay calling nanoTime until we know we will need to either park or spin
        final long endNanos = remainingNanos > 0 ? System.nanoTime() + remainingNanos : 0;
        long_wait_loop:
        if (remainingNanos >= SPIN_THRESHOLD_NANOS) {
          Waiter oldHead = waiters;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        val call = client.newCall(Request(server.url("/")))
        val executeAtNanos = System.nanoTime()
        assertFailsWith<StreamResetException> {
          call.execute()
        }.also { expected ->
          assertThat(expected.message).isEqualTo(
            "stream was reset: PROTOCOL_ERROR",
          )
        }
        val elapsedUntilFailure = System.nanoTime() - executeAtNanos
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
Back to top