Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for systemTicker (0.11 sec)

  1. guava/src/com/google/common/base/Stopwatch.java

       *
       * @since 15.0
       */
      public static Stopwatch createStarted(Ticker ticker) {
        return new Stopwatch(ticker).start();
      }
    
      Stopwatch() {
        this.ticker = Ticker.systemTicker();
      }
    
      Stopwatch(Ticker ticker) {
        this.ticker = checkNotNull(ticker, "ticker");
      }
    
      /**
       * Returns {@code true} if {@link #start()} has been called on this stopwatch, and {@link #stop()}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 9.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]))
    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. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

                0.75f,
                (builder.maximumSize != UNSET_INT),
                builder.maximumSize,
                statsCounter,
                removalListener);
    
        this.ticker = firstNonNull(builder.ticker, Ticker.systemTicker());
      }
    
      @Override
      public int size() {
        return cachingHashMap.size();
      }
    
      @Override
      public boolean isEmpty() {
        return cachingHashMap.isEmpty();
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  4. 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]))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        assertThrows(IllegalStateException.class, () -> builder.refreshAfterWrite(Duration.ofHours(1)));
      }
    
      public void testTicker_setTwice() {
        Ticker testTicker = Ticker.systemTicker();
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder().ticker(testTicker);
        assertThrows(IllegalStateException.class, () -> builder.ticker(testTicker));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/cache/CacheBuilder.java

        this.ticker = checkNotNull(ticker);
        return this;
      }
    
      Ticker getTicker(boolean recordsTime) {
        if (ticker != null) {
          return ticker;
        }
        return recordsTime ? Ticker.systemTicker() : NULL_TICKER;
      }
    
      /**
       * Specifies a listener instance that caches should notify each time an entry is removed for any
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 52K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/CacheBuilder.java

        this.ticker = checkNotNull(ticker);
        return this;
      }
    
      Ticker getTicker(boolean recordsTime) {
        if (ticker != null) {
          return ticker;
        }
        return recordsTime ? Ticker.systemTicker() : NULL_TICKER;
      }
    
      /**
       * Specifies a listener instance that caches should notify each time an entry is removed for any
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/cache/LocalCache.java

          this.maxWeight = maxWeight;
          this.weigher = weigher;
          this.concurrencyLevel = concurrencyLevel;
          this.removalListener = removalListener;
          this.ticker = (ticker == Ticker.systemTicker() || ticker == NULL_TICKER) ? null : ticker;
          this.loader = loader;
        }
    
        CacheBuilder<K, V> recreateCacheBuilder() {
          CacheBuilder<K, V> builder =
              CacheBuilder.newBuilder()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
Back to top