Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 202 for milliseconds (0.19 sec)

  1. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt

            KeepOpen
          }
          else -> wrapSocketPolicy()
        }
      result.throttleBody(throttleBytesPerPeriod, getThrottlePeriod(MILLISECONDS), MILLISECONDS)
      result.bodyDelay(getBodyDelay(MILLISECONDS), MILLISECONDS)
      result.headersDelay(getHeadersDelay(MILLISECONDS), MILLISECONDS)
      return result.build()
    }
    
    private fun PushPromise.wrap(): mockwebserver3.PushPromise {
      return mockwebserver3.PushPromise(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java

        Stopwatch stopwatch = Stopwatch.createStarted();
    
        assertThrows(UncheckedTimeoutException.class, () -> proxy.sleepThenReturnInput("x"));
    
        assertThat(stopwatch.elapsed(MILLISECONDS)).isIn(Range.closed(NOT_ENOUGH_MS, DELAY_MS * 2));
        // Is it still computing away anyway?
        assertThat(target.finished).isFalse();
        MILLISECONDS.sleep(ENOUGH_MS);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/execution/BuildSummary.java

        }
    
        /**
         * Gets the wall time of the project in milliseconds.
         *
         * @return The wall time of the project in milliseconds.
         */
        public long getTime() {
            return execTime;
        }
    
        /**
         * Gets the exec time of the project in milliseconds.
         *
         * @return The exec time of the project in milliseconds.
         */
        public long getWallTime() {
            return wallTime;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

            CacheBuilder.newBuilder().expireAfterAccess(1000, MILLISECONDS).ticker(fakeTicker).build();
    
        cache.put(0, 10);
        cache.put(2, 30);
    
        fakeTicker.advance(999, MILLISECONDS);
        assertEquals(Integer.valueOf(30), cache.getIfPresent(2));
        fakeTicker.advance(1, MILLISECONDS);
        assertEquals(Integer.valueOf(30), cache.getIfPresent(2));
        fakeTicker.advance(1000, MILLISECONDS);
        assertEquals(null, cache.getIfPresent(0));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      /**
       * If true, report on stdout all "slow" tests, that is, ones that take more than profileThreshold
       * milliseconds to execute.
       */
      private static final boolean profileTests = Boolean.getBoolean("jsr166.profileTests");
    
      /**
       * The number of milliseconds that tests are permitted for execution without being reported, when
       * profileTests is set.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/WholeOperationTimeoutTest.kt

          .isEqualTo(TimeUnit.MILLISECONDS.toNanos(456))
      }
    
      @Test
      fun timeoutWritingRequest() {
        server.enqueue(MockResponse())
        val request =
          Request.Builder()
            .url(server.url("/"))
            .post(sleepingRequestBody(500))
            .build()
        val call = client.newCall(request)
        call.timeout().timeout(250, TimeUnit.MILLISECONDS)
        assertFailsWith<IOException> {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/UtilTest.kt

      }
    
      @Test
      fun testDurationTimeUnit() {
        assertThat(checkDuration("timeout", 0, TimeUnit.MILLISECONDS)).isEqualTo(0)
        assertThat(checkDuration("timeout", 1, TimeUnit.MILLISECONDS)).isEqualTo(1)
    
        assertThat(
          assertThrows<IllegalStateException> {
            checkDuration("timeout", -1, TimeUnit.MILLISECONDS)
          },
        ).hasMessage("timeout < 0")
        assertThat(
          assertThrows<IllegalArgumentException> {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

     *
     * ```java
     * public final OkHttpClient client = new OkHttpClient.Builder()
     *     .readTimeout(1000, TimeUnit.MILLISECONDS)
     *     .writeTimeout(1000, TimeUnit.MILLISECONDS)
     *     .build();
     * ```
     *
     * This example shows a call with a short 500 millisecond read timeout and a 1000 millisecond
     * write timeout. Original configuration is kept, but can be overriden.
     *
     * ```java
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:21:33 UTC 2024
    - 52K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/util/concurrent/testing/TestingExecutorsTest.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.util.concurrent.testing;
    
    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.ImmutableList;
    import com.google.common.util.concurrent.ListeningScheduledExecutorService;
    import java.util.List;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/CacheRefreshTest.java

        IncrementingLoader loader = incrementingLoader();
        LoadingCache<Integer, Integer> cache =
            CacheBuilder.newBuilder()
                .refreshAfterWrite(3, MILLISECONDS)
                .expireAfterWrite(6, MILLISECONDS)
                .lenientParsing()
                .ticker(ticker)
                .build(loader);
        int expectedLoads = 0;
        int expectedReloads = 0;
        for (int i = 0; i < 3; i++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.9K bytes
    - Viewed (0)
Back to top