Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 522 for rduration (0.42 sec)

  1. internal/config/batch/batch.go

    type Config struct {
    	ReplicationWorkersWait time.Duration `json:"replicationWorkersWait"`
    	KeyRotationWorkersWait time.Duration `json:"keyRotationWorkersWait"`
    	ExpirationWorkersWait  time.Duration `json:"expirationWorkersWait"`
    }
    
    // ExpirationWait returns the duration for which a batch expiration worker
    // would wait before working on next object.
    func (opts Config) ExpirationWait() time.Duration {
    	configMu.RLock()
    	defer configMu.RUnlock()
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/measure/Duration.java

    import java.math.BigDecimal;
    
    public class Duration {
        public static final Units<Duration> MILLI_SECONDS = Units.base(Duration.class, "ms");
        public static final Units<Duration> SECONDS = MILLI_SECONDS.times(1000, "s");
        public static final Units<Duration> MINUTES = SECONDS.times(60, "m");
        public static final Units<Duration> HOURS = MINUTES.times(60, "h");
    
        public static Amount<Duration> millis(long millis) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/Duration.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.test.fixtures.concurrent
    
    class Duration {
        private final long nanos
    
        Duration(long nanos) {
            this.nanos = nanos
        }
    
        long getMillis() {
            return nanos / 1000000
        }
    
        @Override
        String toString() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 909 bytes
    - Viewed (0)
  4. pkg/kube/inject/testdata/inject/format-duration.yaml.injected

    John Howard <******@****.***> 1709052916 -0800
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 27 16:55:16 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. testing/internal-performance-testing/src/test/groovy/org/gradle/performance/measure/DurationTest.groovy

        }
    
        def "can convert between units"() {
            expect:
            Duration.millis(45000) == Duration.seconds(45)
            Duration.seconds(0.98) == Duration.millis(980)
            Duration.seconds(120) == Duration.minutes(2)
            Duration.seconds(30) == Duration.minutes(0.5)
            Duration.hours(30) == Duration.millis(30 * 60 * 60 * 1000)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/CacheBuilderFactory.java

      }
    
      static class DurationSpec {
        private final long duration;
        private final TimeUnit unit;
    
        private DurationSpec(long duration, TimeUnit unit) {
          this.duration = duration;
          this.unit = unit;
        }
    
        public static DurationSpec of(long duration, TimeUnit unit) {
          return new DurationSpec(duration, unit);
        }
    
        @Override
        public int hashCode() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. src/runtime/histogram.go

    }
    
    // record adds the given duration to the distribution.
    //
    // Disallow preemptions and stack growths because this function
    // may run in sensitive locations.
    //
    //go:nosplit
    func (h *timeHistogram) record(duration int64) {
    	// If the duration is negative, capture that in underflow.
    	if duration < 0 {
    		h.underflow.Add(1)
    		return
    	}
    	// bucketBit is the target bit for the bucket which is usually the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Internal.java

      static long toNanosSaturated(Duration duration) {
        // Using a try/catch seems lazy, but the catch block will rarely get invoked (except for
        // durations longer than approximately +/- 292 years).
        try {
          return duration.toNanos();
        } catch (ArithmeticException tooBig) {
          return duration.isNegative() ? Long.MIN_VALUE : Long.MAX_VALUE;
        }
      }
    
      private Internal() {}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jan 11 14:30:06 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Internal.java

      static long toNanosSaturated(Duration duration) {
        // Using a try/catch seems lazy, but the catch block will rarely get invoked (except for
        // durations longer than approximately +/- 292 years).
        try {
          return duration.toNanos();
        } catch (ArithmeticException tooBig) {
          return duration.isNegative() ? Long.MIN_VALUE : Long.MAX_VALUE;
        }
      }
    
      private Internal() {}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jan 11 14:30:06 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. src/internal/trace/traceviewer/histogram.go

    		h.MaxBucket = bucket
    	}
    	h.Count++
    }
    
    // BucketMin returns the minimum duration value for a provided bucket.
    func (h *TimeHistogram) BucketMin(bucket int) time.Duration {
    	return time.Duration(math.Exp(float64(bucket) * logDiv))
    }
    
    // ToHTML renders the histogram as HTML.
    func (h *TimeHistogram) ToHTML(urlmaker func(min, max time.Duration) string) template.HTML {
    	if h == nil || h.Count == 0 {
    		return template.HTML("")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:28:58 UTC 2023
    - 2.3K bytes
    - Viewed (0)
Back to top