Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for createUnstarted (0.17 sec)

  1. guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

        assertSame(sepLoader, sepStopwatchC.getClassLoader());
        AtomicReference<Object> sepStopwatchA =
            new AtomicReference<Object>(sepStopwatchC.getMethod("createUnstarted").invoke(null));
        AtomicReference<WeakReference<?>> sepStopwatchRef =
            new AtomicReference<WeakReference<?>>(
                (WeakReference<?>) sepFwrCons.newInstance(sepStopwatchA.get(), sepFrqA.get()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(Predicate.class, Predicates.alwaysTrue())
              .put(Equivalence.class, Equivalence.equals())
              .put(Ticker.class, Ticker.systemTicker())
              .put(Stopwatch.class, Stopwatch.createUnstarted())
              // io types
              .put(InputStream.class, new ByteArrayInputStream(new byte[0]))
              .put(ByteArrayInputStream.class, new ByteArrayInputStream(new byte[0]))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(Predicate.class, Predicates.alwaysTrue())
              .put(Equivalence.class, Equivalence.equals())
              .put(Ticker.class, Ticker.systemTicker())
              .put(Stopwatch.class, Stopwatch.createUnstarted())
              // io types
              .put(InputStream.class, new ByteArrayInputStream(new byte[0]))
              .put(ByteArrayInputStream.class, new ByteArrayInputStream(new byte[0]))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/QueuesTest.java

          // producing one, will ask for two
          Future<?> producerThread = threadPool.submit(producer);
          producer.beganProducing.await();
    
          // make sure we time out
          Stopwatch timer = Stopwatch.createStarted();
    
          int drained = drain(q, newArrayList(), 2, 10, MILLISECONDS, interruptibly);
          assertThat(drained).isAtMost(1);
    
          assertThat(timer.elapsed(MILLISECONDS)).isAtLeast(10L);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

        void tryStartTiming(Service service) {
          monitor.enter();
          try {
            Stopwatch stopwatch = startupTimers.get(service);
            if (stopwatch == null) {
              startupTimers.put(service, Stopwatch.createStarted());
            }
          } finally {
            monitor.leave();
          }
        }
    
        /**
         * Marks the {@link State} as ready to receive transitions. Returns true if no transitions have
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/ServiceManager.java

        void tryStartTiming(Service service) {
          monitor.enter();
          try {
            Stopwatch stopwatch = startupTimers.get(service);
            if (stopwatch == null) {
              startupTimers.put(service, Stopwatch.createStarted());
            }
          } finally {
            monitor.leave();
          }
        }
    
        /**
         * Marks the {@link State} as ready to receive transitions. Returns true if no transitions have
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/hash/BloomFilterTest.java

          bloomFilter.put(getNonGoldenRandomKey());
        }
        bloomFilter.put(GOLDEN_PRESENT_KEY);
    
        int numThreads = 12;
        final double safetyFalsePositiveRate = 0.1;
        final Stopwatch stopwatch = Stopwatch.createStarted();
    
        Runnable task =
            new Runnable() {
              @Override
              public void run() {
                do {
                  // We can't have a GOLDEN_NOT_PRESENT_KEY because false positives are
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

        protected abstract void sleepMicrosUninterruptibly(long micros);
    
        public static SleepingStopwatch createFromSystemTimer() {
          return new SleepingStopwatch() {
            final Stopwatch stopwatch = Stopwatch.createStarted();
    
            @Override
            protected long readMicros() {
              return stopwatch.elapsed(MICROSECONDS);
            }
    
            @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/RateLimiter.java

        protected abstract void sleepMicrosUninterruptibly(long micros);
    
        public static SleepingStopwatch createFromSystemTimer() {
          return new SleepingStopwatch() {
            final Stopwatch stopwatch = Stopwatch.createStarted();
    
            @Override
            protected long readMicros() {
              return stopwatch.elapsed(MICROSECONDS);
            }
    
            @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 21.6K bytes
    - Viewed (0)
Back to top