Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for addAndGet (0.05 sec)

  1. android/guava-testlib/src/com/google/common/testing/FakeTicker.java

      }
    
      /** Advances the ticker value by {@code nanoseconds}. */
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      @CanIgnoreReturnValue
      public FakeTicker advance(long nanoseconds) {
        nanos.addAndGet(nanoseconds);
        return this;
      }
    
      /**
       * Advances the ticker value by {@code duration}.
       *
       * @since 33.1.0 (but since 28.0 in the JRE <a
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 15:16:19 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

        misses.set(0);
      }
    
      @Benchmark
      int time(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy += cache.getUnchecked(nextRandomKey());
        }
        requests.addAndGet(reps);
        return dummy;
      }
    
      private int nextRandomKey() {
        int a = random.nextInt(max);
    
        /*
         * For example, if concentration=2.0, the following takes the square root of
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/testing/FakeTicker.java

      }
    
      /** Advances the ticker value by {@code nanoseconds}. */
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      @CanIgnoreReturnValue
      public FakeTicker advance(long nanoseconds) {
        nanos.addAndGet(nanoseconds);
        return this;
      }
    
      /**
       * Advances the ticker value by {@code duration}.
       *
       * @since 28.0
       */
      @GwtIncompatible
      @J2ktIncompatible
      @CanIgnoreReturnValue
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 15:16:19 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  4. docs/smb3-features/05-rdma-smb-direct-design.md

        
        public void recordRdmaRead(int bytes) {
            rdmaReads.incrementAndGet();
            bytesTransferred.addAndGet(bytes);
        }
        
        public void recordRdmaWrite(int bytes) {
            rdmaWrites.incrementAndGet();
            bytesTransferred.addAndGet(bytes);
        }
        
        public void recordError() {
            operationErrors.incrementAndGet();
        }
        
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 35.9K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/job/JobExecutorTest.java

                }
            };
    
            ShutdownListener listener2 = new ShutdownListener() {
                @Override
                public void onShutdown() {
                    callCount.addAndGet(10);
                }
            };
    
            // Add first listener
            jobExecutor.addShutdownListener(listener1);
            assertEquals(listener1, jobExecutor.shutdownListener);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/AtomicDouble.java

      }
    
      /**
       * Atomically adds the given value to the current value.
       *
       * @param delta the value to add
       * @return the updated value
       */
      @CanIgnoreReturnValue
      public final double addAndGet(double delta) {
        return accumulateAndGet(delta, Double::sum);
      }
    
      /**
       * Atomically updates the current value with the results of applying the given function to the
       * current and given values.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackTest.java

                    assertNotNull(paramMap);
                    assertNotNull(dataMap);
                    docSize.incrementAndGet();
                    execTime.addAndGet(100);
                }
    
                @Override
                public long getDocumentSize() {
                    return docSize.get();
                }
    
                @Override
                public long getExecuteTime() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java

       *
       * @param i the index
       * @param delta the value to add
       * @return the updated value
       */
      @CanIgnoreReturnValue
      public double addAndGet(int i, double delta) {
        return accumulateAndGet(i, delta, Double::sum);
      }
    
      /**
       * Atomically updates the element at index {@code i} with the results of applying the given
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/util/SmbCircuitBreaker.java

                // Track time in open state
                if (oldState == State.OPEN && openStateStartTime.get() > 0) {
                    totalTimeInOpen.addAndGet(System.currentTimeMillis() - openStateStartTime.get());
                    openStateStartTime.set(0);
                }
    
                if (newState == State.OPEN) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  10. docs/smb3-features/03-multi-channel-design.md

                k -> new ChannelStatistics());
                
            stats.operations.incrementAndGet();
            stats.latencyTotal.addAndGet(latency);
            
            if (success) {
                stats.bytesReceived.addAndGet(bytes);
            } else {
                stats.errors.incrementAndGet();
            }
        }
        
        public double getAggregatedThroughput() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 39.6K bytes
    - Viewed (0)
Back to top