- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,588 for rduration (0.35 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion/metrics.go
result := "success" m.conversionWebhookRequest.WithContext(ctx).WithLabelValues(result, "").Inc() m.observe(ctx, elapsed, result, "") } // Observe failure with failure type func (m *ConversionWebhookMetrics) ObserveConversionWebhookFailure(ctx context.Context, elapsed time.Duration, errorType ConversionWebhookErrorType) { result := "failure"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 07 19:34:33 UTC 2023 - 5.7K bytes - Viewed (0) -
src/log/slog/value_access_benchmark_test.go
Float64(float64) Bool(bool) Duration(time.Duration) Any(any) } func (a Value) Visit(v Visitor) { switch a.Kind() { case KindString: v.String(a.str()) case KindInt64: v.Int64(int64(a.num)) case KindUint64: v.Uint64(a.num) case KindBool: v.Bool(a.bool()) case KindFloat64: v.Float64(a.float()) case KindDuration: v.Duration(a.duration()) case KindAny:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 21 20:55:33 UTC 2023 - 4.3K bytes - Viewed (0) -
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) -
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) -
staging/src/k8s.io/apimachinery/pkg/util/wait/wait_test.go
tests := []struct { initial *Backoff want []time.Duration }{ {initial: nil, want: []time.Duration{0, 0, 0, 0}}, {initial: &Backoff{Duration: time.Second, Steps: -1}, want: []time.Duration{time.Second, time.Second, time.Second}}, {initial: &Backoff{Duration: time.Second, Steps: 0}, want: []time.Duration{time.Second, time.Second, time.Second}},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 41.1K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/Internal.java
* a duration in order to call a legacy API which requires a {@code long, TimeUnit} pair. */ 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) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Apr 04 09:45:04 UTC 2023 - 1.7K bytes - Viewed (0) -
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) -
.teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt
val durations = JSON.parseArray(performanceTestDurationsJson.readText(StandardCharsets.UTF_8)) val pairs = durations.flatMap { it -> val scenarioDurations = it as JSONObject val scenario = Scenario.fromTestId(scenarioDurations["scenario"] as String) (scenarioDurations["durations"] as JSONArray).flatMap { val duration = it as JSONObject
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Feb 19 11:22:56 UTC 2024 - 15.3K bytes - Viewed (0) -
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) -
src/flag/example_test.go
if len(*i) > 0 { return errors.New("interval flag already set") } for _, dt := range strings.Split(value, ",") { duration, err := time.ParseDuration(dt) if err != nil { return err } *i = append(*i, duration) } return nil } // Define a flag to accumulate durations. Because it has a special type, // we need to use the Var function and therefore create the flag during // init.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 26 18:59:00 UTC 2022 - 2.8K bytes - Viewed (0)