Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 9 of 9 for createStarted (0.41 seconds)

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

        Stopwatch stopwatch = Stopwatch.createStarted();
    
        assertThrows(UncheckedTimeoutException.class, proxy::sleepThenThrowException);
    
        assertThat(stopwatch.elapsed(MILLISECONDS)).isIn(Range.closed(NOT_ENOUGH_MS, DELAY_MS * 2));
      }
    
      public void testCallWithTimeout_goodCallableWithEnoughTime() throws Exception {
        Stopwatch stopwatch = Stopwatch.createStarted();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java

        Stopwatch stopwatch = Stopwatch.createStarted();
    
        assertThrows(UncheckedTimeoutException.class, proxy::sleepThenThrowException);
    
        assertThat(stopwatch.elapsed(MILLISECONDS)).isIn(Range.closed(NOT_ENOUGH_MS, DELAY_MS * 2));
      }
    
      public void testCallWithTimeout_goodCallableWithEnoughTime() throws Exception {
        Stopwatch stopwatch = Stopwatch.createStarted();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

      }
    
      // IncrementableCountDownLatch.await() tests
    
      // CountDownLatch.await() tests
      public void testAwaitWithNoWait() {
        Stopwatch stopwatch = Stopwatch.createStarted();
        CountDownLatch latch = new CountDownLatch(0);
        awaitUninterruptibly(latch);
        assertTrue(awaitUninterruptibly(latch, 0, MILLISECONDS));
        assertTrue(awaitUninterruptibly(latch, -42, MILLISECONDS));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 38.1K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

      }
    
      // IncrementableCountDownLatch.await() tests
    
      // CountDownLatch.await() tests
      public void testAwaitWithNoWait() {
        Stopwatch stopwatch = Stopwatch.createStarted();
        CountDownLatch latch = new CountDownLatch(0);
        awaitUninterruptibly(latch);
        assertTrue(awaitUninterruptibly(latch, 0, MILLISECONDS));
        assertTrue(awaitUninterruptibly(latch, -42, MILLISECONDS));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 38.1K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/base/StopwatchTest.java

      private final FakeTicker ticker = new FakeTicker();
      private final Stopwatch stopwatch = new Stopwatch(ticker);
    
      public void testCreateStarted() {
        Stopwatch startedStopwatch = Stopwatch.createStarted();
        assertTrue(startedStopwatch.isRunning());
      }
    
      public void testCreateUnstarted() {
        Stopwatch unstartedStopwatch = Stopwatch.createUnstarted();
        assertFalse(unstartedStopwatch.isRunning());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  6. 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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 33.2K bytes
    - Click Count (1)
  7. guava-tests/test/com/google/common/hash/BloomFilterTest.java

          bloomFilter.put(getNonGoldenRandomKey());
        }
        bloomFilter.put(GOLDEN_PRESENT_KEY);
    
        int numThreads = 12;
        double safetyFalsePositiveRate = 0.1;
        Stopwatch stopwatch = Stopwatch.createStarted();
    
        Runnable task =
            () -> {
              do {
                // We can't have a GOLDEN_NOT_PRESENT_KEY because false positives are
                // possible! It's false negatives that can't happen.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 23K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/cache/LocalCache.java

       */
      @Nullable Map<K, V> loadAll(Set<? extends K> keys, CacheLoader<? super K, V> loader)
          throws ExecutionException {
        checkNotNull(loader);
        checkNotNull(keys);
        Stopwatch stopwatch = Stopwatch.createStarted();
        Map<K, V> result;
        boolean success = false;
        try {
          @SuppressWarnings("unchecked") // safe since all keys extend K
          Map<K, V> map = (Map<K, V>) loader.loadAll(keys);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 143.5K bytes
    - Click Count (0)
  9. guava/src/com/google/common/cache/LocalCache.java

       */
      @Nullable Map<K, V> loadAll(Set<? extends K> keys, CacheLoader<? super K, V> loader)
          throws ExecutionException {
        checkNotNull(loader);
        checkNotNull(keys);
        Stopwatch stopwatch = Stopwatch.createStarted();
        Map<K, V> result;
        boolean success = false;
        try {
          @SuppressWarnings("unchecked") // safe since all keys extend K
          Map<K, V> map = (Map<K, V>) loader.loadAll(keys);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 148.9K bytes
    - Click Count (0)
Back to Top