Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 86 for nanoseconds (0.05 sec)

  1. guava/src/com/google/common/util/concurrent/Service.java

       * @since 28.0
       */
      default void awaitRunning(Duration timeout) throws TimeoutException {
        awaitRunning(toNanosSaturated(timeout), TimeUnit.NANOSECONDS);
      }
    
      /**
       * Waits for the {@link Service} to reach the {@linkplain State#RUNNING running state} for no more
       * than the given time.
       *
       * @param timeout the maximum time to wait
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/cache/CacheBuilder.java

    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Preconditions.checkState;
    import static java.util.concurrent.TimeUnit.NANOSECONDS;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.base.Ascii;
    import com.google.common.base.Equivalence;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 51.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/Monitor.java

       *
       * @return whether the monitor was entered
       * @since 28.0 (but only since 33.4.0 in the Android flavor)
       */
      public boolean enter(Duration time) {
        return enter(toNanosSaturated(time), TimeUnit.NANOSECONDS);
      }
    
      /**
       * Enters this monitor. Blocks at most the given time.
       *
       * @return whether the monitor was entered
       */
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 42.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/Internal.java

    /** This class is for {@code com.google.common.util.concurrent} use only! */
    @J2ktIncompatible
    @GwtIncompatible // java.time.Duration
    final class Internal {
    
      /**
       * Returns the number of nanoseconds of the given duration without throwing or overflowing.
       *
       * <p>Instead of throwing {@link ArithmeticException}, this method silently saturates to either
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java

    import static java.lang.Boolean.parseBoolean;
    import static java.security.AccessController.doPrivileged;
    import static java.util.Objects.requireNonNull;
    import static java.util.concurrent.TimeUnit.NANOSECONDS;
    import static java.util.concurrent.atomic.AtomicReferenceFieldUpdater.newUpdater;
    import static java.util.logging.Level.SEVERE;
    
    import com.google.common.annotations.GwtCompatible;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 33.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/cache/CacheStats.java

     *             are incremented, and the total loading time, in nanoseconds, is added to {@code
     *             totalLoadTime}.
     *         <li>When an exception is thrown while loading an entry, {@code missCount} and {@code
     *             loadExceptionCount} are incremented, and the total loading time, in nanoseconds, is
     *             added to {@code totalLoadTime}.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  7. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        val inputStream = connection.getInputStream()
        assertThat(inputStream.read()).isEqualTo(-1)
        val elapsedNanos = System.nanoTime() - startNanos
        val elapsedMillis = TimeUnit.NANOSECONDS.toMillis(elapsedNanos)
        assertThat(elapsedMillis).isBetween(500L, 1000L)
      }
    
      /**
       * Throttle the response body by sleeping 500ms after every 3 bytes. With a 6-byte response, this
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 03 13:16:34 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/MonotonicClock.java

            return get().elapsedTime();
        }
    
        /**
         * Returns a monotonically increasing instant.
         * <p>
         * The returned instant is calculated by adding the elapsed nanoseconds
         * since clock creation to the initial wall clock time. This ensures that
         * the time never goes backwards and maintains a consistent relationship
         * with the wall clock time.
         *
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jan 15 06:28:29 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Internal.java

    import java.time.Duration;
    
    /** This class is for {@code com.google.common.base} use only! */
    @J2ktIncompatible
    @GwtIncompatible // java.time.Duration
    final class Internal {
    
      /**
       * Returns the number of nanoseconds of the given duration without throwing or overflowing.
       *
       * <p>Instead of throwing {@link ArithmeticException}, this method silently saturates to either
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 15:16:19 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/AbstractFutureState.java

    import static java.lang.Boolean.parseBoolean;
    import static java.security.AccessController.doPrivileged;
    import static java.util.Objects.requireNonNull;
    import static java.util.concurrent.TimeUnit.NANOSECONDS;
    import static java.util.concurrent.atomic.AtomicReferenceFieldUpdater.newUpdater;
    import static java.util.logging.Level.SEVERE;
    
    import com.google.common.annotations.GwtCompatible;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 34.8K bytes
    - Viewed (0)
Back to top