- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 1,567 for rduration (3.37 sec)
-
platforms/core-configuration/stdlib-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/stdlib/DurationCodec.kt
import org.gradle.internal.serialize.graph.ReadContext import org.gradle.internal.serialize.graph.WriteContext import java.time.Duration internal object DurationCodec : Codec<Duration> { override suspend fun WriteContext.encode(value: Duration) { // Do not use the ISO-8601 format for serialization // to work around https://bugs.openjdk.java.net/browse/JDK-8054978 // on Java 8
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat May 25 20:43:52 UTC 2024 - 1.3K bytes - Viewed (0) -
src/cmd/pprof/pprof.go
u.Path = cpuProfileHandler } // Apply duration/timeout overrides to URL. values := u.Query() if duration > 0 { values.Set("seconds", fmt.Sprint(int(duration.Seconds()))) } else { if urlSeconds := values.Get("seconds"); urlSeconds != "" { if us, err := strconv.ParseInt(urlSeconds, 10, 32); err == nil { duration = time.Duration(us) * time.Second } } } if timeout <= 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 9.5K bytes - Viewed (0) -
pkg/registry/certificates/certificates/storage/metrics_test.go
} if got := testHon.called; tt.wantHonored != got { t.Errorf("honored inc: want %v, got %v", tt.wantHonored, got) } }) } } func createCert(t *testing.T, duration time.Duration, caPrivateKey *ecdsa.PrivateKey, caCert *x509.Certificate) []byte { t.Helper() crPublicKey := &caPrivateKey.PublicKey // this is supposed to be public key of the signee but it does not matter for this test
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 15 14:34:53 UTC 2024 - 13.7K bytes - Viewed (0) -
pkg/controller/deployment/progress_test.go
name string d *apps.Deployment status apps.DeploymentStatus nowFn func() time.Time expected time.Duration }{ { name: "nil progressDeadlineSeconds specified", d: currentDeployment(nil, 4, 3, 3, 2, nil), status: newDeploymentStatus(3, 3, 2), expected: time.Duration(-1), }, { name: "infinite progressDeadlineSeconds specified",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 13.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt
internal fun checkDuration( name: String, duration: Long, unit: TimeUnit, ): Int { check(duration >= 0L) { "$name < 0" } val millis = unit.toMillis(duration) require(millis <= Integer.MAX_VALUE) { "$name too large" } require(millis != 0L || duration <= 0L) { "$name too small" } return millis.toInt() } internal fun checkDuration( name: String, duration: Duration, ): Int {
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon May 13 13:42:37 UTC 2024 - 10.7K bytes - Viewed (0) -
pilot/pkg/security/authn/policy_applier.go
Cluster: cluster, }, Timeout: timeout, }, CacheDuration: &durationpb.Duration{Seconds: 5 * 60}, }, } } else if features.JwksFetchMode == jwt.Hybrid { provider.JwksSourceSpecifier = push.JwtKeyResolver.BuildLocalJwks(jwtRule.JwksUri, jwtRule.Issuer, "", timeout.AsDuration()) } else { model.IncLookupClusterFailures("jwks")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 23 09:47:21 UTC 2024 - 19.2K bytes - Viewed (0) -
pkg/controller/podautoscaler/rate_limiters.go
type FixedItemIntervalRateLimiter struct { interval time.Duration } var _ workqueue.TypedRateLimiter[string] = &FixedItemIntervalRateLimiter{} // NewFixedItemIntervalRateLimiter creates a new instance of a RateLimiter using a fixed interval func NewFixedItemIntervalRateLimiter(interval time.Duration) workqueue.TypedRateLimiter[string] { return &FixedItemIntervalRateLimiter{ interval: interval, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 1.8K bytes - Viewed (0) -
src/runtime/pprof/rusage_test.go
} func diffCPUTimeRUsage(f func()) (user, system time.Duration) { ok := true var before, after syscall.Rusage err := syscall.Getrusage(syscall.RUSAGE_SELF, &before) if err != nil { ok = false } f() err = syscall.Getrusage(syscall.RUSAGE_SELF, &after) if err != nil { ok = false } if !ok { return 0, 0 } user = time.Duration(after.Utime.Nano() - before.Utime.Nano())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 30 23:58:34 UTC 2022 - 753 bytes - Viewed (0) -
pkg/kubelet/metrics/metrics_test.go
{200 * 1024 * 1024 * 1024, 10000}, } for _, dp := range dataPoints { imageSize := int64(dp[0]) duration := dp[1] t.Log(imageSize, duration) t.Log(GetImageSizeBucket(uint64(imageSize))) ImagePullDuration.WithLabelValues(GetImageSizeBucket(uint64(imageSize))).Observe(duration) } wants, err := os.Open("testdata/image_pull_duration_metric") defer func() { if err := wants.Close(); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 08 00:30:31 UTC 2024 - 1.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/atmostevery.go
"time" ) // AtMostEvery will never run the method more than once every specified // duration. type AtMostEvery struct { delay time.Duration lastCall time.Time mutex sync.Mutex } // NewAtMostEvery creates a new AtMostEvery, that will run the method at // most every given duration. func NewAtMostEvery(delay time.Duration) *AtMostEvery { return &AtMostEvery{ delay: delay, } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 1.5K bytes - Viewed (0)