Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for increment (0.2 sec)

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

        checkArgument(autoIncrementStep >= 0, "May not auto-increment by a negative amount");
        this.autoIncrementStepNanos = timeUnit.toNanos(autoIncrementStep);
        return this;
      }
    
      /**
       * Sets the increment applied to the ticker whenever it is queried.
       *
       * <p>The default behavior is to auto increment by zero. i.e: The ticker is left unchanged when
       * queried.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 13 18:17:09 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/FakeTicker.java

        checkArgument(autoIncrementStep >= 0, "May not auto-increment by a negative amount");
        this.autoIncrementStepNanos = timeUnit.toNanos(autoIncrementStep);
        return this;
      }
    
      /**
       * Sets the increment applied to the ticker whenever it is queried.
       *
       * <p>The default behavior is to auto increment by zero. i.e: The ticker is left unchanged when
       * queried.
       *
       * @since 28.0
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 14:40:46 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  3. cmd/erasure-utils.go

    		return 0, reedsolomon.ErrShortData
    	}
    
    	// Counter to decrement total left to write.
    	write := length
    
    	// Counter to increment total written.
    	var totalWritten int64
    
    	// Write all data blocks to dst.
    	for _, block := range enBlocks[:dataBlocks] {
    		// Skip blocks until we have reached our offset.
    		if offset >= int64(len(block)) {
    			// Decrement offset.
    			offset -= int64(len(block))
    			continue
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/AbstractCache.java

          loadSuccessCount.increment();
          totalLoadTime.add(loadTime);
        }
    
        @SuppressWarnings("GoodTime") // b/122668874
        @Override
        public void recordLoadException(long loadTime) {
          loadExceptionCount.increment();
          totalLoadTime.add(loadTime);
        }
    
        @Override
        public void recordEviction() {
          evictionCount.increment();
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 9.1K bytes
    - Viewed (0)
  5. internal/bucket/bandwidth/measurement.go

    		m.expMovingAvg = float64(bytesSinceLastWindow) / duration.Seconds()
    		return
    	}
    
    	increment := float64(bytesSinceLastWindow) / duration.Seconds()
    	m.expMovingAvg = exponentialMovingAverage(betaBucket, m.expMovingAvg, increment)
    }
    
    // exponentialMovingAverage calculates the exponential moving average
    func exponentialMovingAverage(beta, previousAvg, incrementAvg float64) float64 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Jun 03 20:41:51 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/AbstractCache.java

          loadSuccessCount.increment();
          totalLoadTime.add(loadTime);
        }
    
        @SuppressWarnings("GoodTime") // b/122668874
        @Override
        public void recordLoadException(long loadTime) {
          loadExceptionCount.increment();
          totalLoadTime.add(loadTime);
        }
    
        @Override
        public void recordEviction() {
          evictionCount.increment();
        }
    
        @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 9.1K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

        var bias = INITIAL_BIAS
        var h = b
        while (h < input.size) {
          val m = input.minBy { if (it >= n) it else Int.MAX_VALUE }
    
          val increment = (m - n) * (h + 1)
          if (delta > Int.MAX_VALUE - increment) return false // Prevent overflow.
          delta += increment
    
          n = m
    
          for (c in input) {
            if (c < n) {
              if (delta == Int.MAX_VALUE) return false // Prevent overflow.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/LongAddable.java

    package com.google.common.hash;
    
    
    /**
     * Abstract interface for objects that can concurrently add longs.
     *
     * @author Louis Wasserman
     */
    @ElementTypesAreNonnullByDefault
    interface LongAddable {
      void increment();
    
      void add(long x);
    
      long sum();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 850 bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/DoubleUtils.java

         * >= 0.5 and signifFloor is odd (which is true if both the 0.5 bit and the 1 bit are set).
         */
        boolean increment =
            (twiceSignifFloor & 1) != 0 && ((signifFloor & 1) != 0 || absX.getLowestSetBit() < shift);
        long signifRounded = increment ? signifFloor + 1 : signifFloor;
        long bits = (long) (exponent + EXPONENT_BIAS) << SIGNIFICAND_BITS;
        bits += signifRounded;
        /*
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 28 15:37:52 GMT 2021
    - 5.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/LongAddable.java

    /**
     * Abstract interface for objects that can concurrently add longs.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    interface LongAddable {
      void increment();
    
      void add(long x);
    
      long sum();
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 918 bytes
    - Viewed (0)
Back to top