- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 142 for microsecond (0.18 sec)
-
cmd/kubeadm/app/phases/bootstraptoken/clusterinfo/clusterinfo_test.go
defaultTimeouts := kubeadmapi.GetActiveTimeouts() defaultAPICallTimeout := defaultTimeouts.KubernetesAPICall defaultTimeouts.KubernetesAPICall = &metav1.Duration{Duration: time.Microsecond * 500} defer func() { defaultTimeouts.KubernetesAPICall = defaultAPICallTimeout }() for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { client := clientsetfake.NewSimpleClientset()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Feb 18 11:14:32 UTC 2024 - 5.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_test.go
func TestMicroTimeUnmarshalJSONAndProtoEqual(t *testing.T) { cases := []struct { name string input MicroTime result bool }{ {"nanosecond level precision", UnixMicro(123, 123123123), true}, {"microsecond level precision", UnixMicro(123, 123123000), true}, } for _, c := range cases { t.Run(c.name, func(t *testing.T) { jsonData, err := c.input.MarshalJSON() if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 11.1K bytes - Viewed (0) -
pkg/kubelet/nodeshutdown/systemd/inhibit_linux.go
} delay, ok := res.Value().(uint64) if !ok { return 0, fmt.Errorf("InhibitDelayMaxUSec from logind is not a uint64 as expected") } // InhibitDelayMaxUSec is in microseconds duration := time.Duration(delay) * time.Microsecond return duration, nil } // InhibitShutdown creates an systemd inhibitor by calling logind's Inhibt() and returns the inhibitor lock
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 04 06:56:50 UTC 2023 - 6.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/wait/wait_test.go
f := ConditionFunc(func() (bool, error) { ch <- struct{}{} select { case <-done: return true, nil default: } return false, nil }) if err := PollInfinite(time.Microsecond, f); err != nil { errc <- fmt.Errorf("unexpected error %v", err) } close(ch) complete <- struct{}{} }() // ensure the condition is opened <-ch
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 41.1K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/eintr.go
r2 = append(r2, bytes.Repeat([]byte{byte(i)}, 100)...) r2 = r2[100:] } } return r1, r2 } // winch sends a few SIGWINCH signals to the process. func winch() { ticker := time.NewTicker(100 * time.Microsecond) defer ticker.Stop() pid := syscall.Getpid() for n := 10; n > 0; n-- { syscall.Kill(pid, syscall.SIGWINCH) <-ticker.C } } // sendSomeSignals triggers a few SIGURG and SIGWINCH signals.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 17:54:15 UTC 2022 - 5.2K bytes - Viewed (0) -
src/internal/trace/gc_test.go
defer func(old int) { trace.BandsPerSeries = old }(trace.BandsPerSeries) trace.BandsPerSeries = 1 mmuCurve2 := trace.NewMMUCurve(mu) quantiles := []float64{0, 1 - .999, 1 - .99} for window := time.Microsecond; window < time.Second; window *= 10 { mud1 := mmuCurve.MUD(window, quantiles) mud2 := mmuCurve2.MUD(window, quantiles) for i := range mud1 { if !aeq(mud1[i], mud2[i]) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 5.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
package v1 import ( "encoding/json" "time" cbor "k8s.io/apimachinery/pkg/runtime/serializer/cbor/direct" ) const RFC3339Micro = "2006-01-02T15:04:05.000000Z07:00" // MicroTime is version of Time with microsecond level precision. // // +protobuf.options.marshal=false // +protobuf.as=Timestamp // +protobuf.options.(gogoproto.goproto_stringer)=false type MicroTime struct { time.Time `protobuf:"-"` }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 5.2K bytes - Viewed (0) -
pkg/log/default_test.go
t.Fatalf("Failed to unmarshal log entry: %v", err) } return e.Time } t.Run("specified time", func(t *testing.T) { yesterday := time.Now().Add(-time.Hour * 24).Truncate(time.Microsecond) stdoutLines, _ := captureStdout(func() { o := DefaultOptions() o.JSONEncoding = true _ = Configure(o) defaultScope.LogWithTime(InfoLevel, "Hello", yesterday) })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 26 20:38:10 UTC 2024 - 7.4K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Stopwatch.java
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Nov 15 21:38:09 UTC 2022 - 8.5K bytes - Viewed (0) -
guava/src/com/google/common/base/Stopwatch.java
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 23 15:09:35 UTC 2023 - 9.2K bytes - Viewed (0)