Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 61 for Nanoseconds (0.27 sec)

  1. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

     * uncompilable code).)
     */
    
    package com.google.common.util.concurrent;
    
    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static java.util.concurrent.TimeUnit.NANOSECONDS;
    
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.security.CodeSource;
    import java.security.Permission;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Queues.java

          added += q.drainTo(buffer, numElements - added);
          if (added < numElements) { // not enough elements immediately available; will have to poll
            E e = q.poll(deadline - System.nanoTime(), TimeUnit.NANOSECONDS);
            if (e == null) {
              break; // we already waited enough, and there are no more elements in sight
            }
            buffer.add(e);
            added++;
          }
        }
        return added;
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 16K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

    import static java.util.concurrent.Executors.newSingleThreadScheduledExecutor;
    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static java.util.concurrent.TimeUnit.NANOSECONDS;
    import static java.util.concurrent.TimeUnit.SECONDS;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/LocalCache.java

          throw new ExecutionError(e);
        } finally {
          if (!success) {
            globalStatsCounter.recordLoadException(stopwatch.elapsed(NANOSECONDS));
          }
        }
    
        if (result == null) {
          globalStatsCounter.recordLoadException(stopwatch.elapsed(NANOSECONDS));
          throw new InvalidCacheLoadException(loader + " returned null map from loadAll");
        }
    
        stopwatch.stop();
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/Monitor.java

        try {
          final long startTime = System.nanoTime();
          for (long remainingNanos = timeoutNanos; ; ) {
            try {
              return lock.tryLock(remainingNanos, TimeUnit.NANOSECONDS);
            } catch (InterruptedException interrupt) {
              interrupted = true;
              remainingNanos = remainingNanos(startTime, timeoutNanos);
            }
          }
        } finally {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/cache/CacheBuilderSpec.java

     * representing days, hours, minutes, or seconds respectively. (There is currently no syntax to
     * request expiration in milliseconds, microseconds, or nanoseconds.)
     *
     * <p>Whitespace before and after commas and equal signs is ignored. Keys may not be repeated; it is
     * also illegal to use the following pairs of keys in a single value:
     *
     * <ul>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Aug 22 14:27:44 GMT 2022
    - 18.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/CacheBuilder.java

      @CanIgnoreReturnValue
      public CacheBuilder<K, V> expireAfterWrite(java.time.Duration duration) {
        return expireAfterWrite(toNanosSaturated(duration), TimeUnit.NANOSECONDS);
      }
    
      /**
       * Specifies that each entry should be automatically removed from the cache once a fixed duration
       * has elapsed after the entry's creation, or the most recent replacement of its value.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

     * uncompilable code).)
     */
    
    package com.google.common.util.concurrent;
    
    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static java.util.concurrent.TimeUnit.NANOSECONDS;
    
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.security.CodeSource;
    import java.security.Permission;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

    import static java.util.concurrent.Executors.newSingleThreadScheduledExecutor;
    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static java.util.concurrent.TimeUnit.NANOSECONDS;
    import static java.util.concurrent.TimeUnit.SECONDS;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

          // We over-waited for our timeout.
          message += " (plus ";
          long overWaitNanos = -remainingNanos;
          long overWaitUnits = unit.convert(overWaitNanos, TimeUnit.NANOSECONDS);
          long overWaitLeftoverNanos = overWaitNanos - unit.toNanos(overWaitUnits);
          boolean shouldShowExtraNanos =
              overWaitUnits == 0 || overWaitLeftoverNanos > SPIN_THRESHOLD_NANOS;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
Back to top