Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 142 for microsecond (0.16 sec)

  1. pkg/kubelet/cm/container_manager_linux_test.go

    				assert.Equal(t, c.cm.PodPidsLimit, got.podPidsLimit)
    				assert.Equal(t, c.cm.EnforceCPULimits, got.enforceCPULimits)
    				assert.Equal(t, uint64(c.cm.CPUCFSQuotaPeriod/time.Microsecond), got.cpuCFSQuotaPeriod)
    
    			} else {
    				assert.IsType(t, &podContainerManagerNoop{}, pcm)
    				got := pcm.(*podContainerManagerNoop)
    				assert.Equal(t, c.cm.cgroupRoot, got.cgroupRoot)
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. src/time/sleep_test.go

    	)
    
    	wg.Add(2)
    	go func() {
    		for !stop.Load() {
    			c <- true
    		}
    		close(c)
    		wg.Done()
    	}()
    	go func() {
    		for range c {
    		}
    		wg.Done()
    	}()
    
    	AfterFunc(1*Microsecond, func() { stop.Store(true) })
    	wg.Wait()
    }
    
    func benchmark(b *testing.B, bench func(*testing.PB)) {
    	// Create equal number of garbage timers on each P before starting
    	// the benchmark.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:33:57 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/util/config/common_test.go

    					Timeout: &metav1.Duration{
    						Duration: 1234 * time.Microsecond,
    					},
    				},
    				Timeouts: &kubeadmapi.Timeouts{
    					Discovery: &metav1.Duration{},
    				},
    			}},
    			expected: []any{&kubeadmapi.JoinConfiguration{
    				Timeouts: &kubeadmapi.Timeouts{
    					Discovery: &metav1.Duration{
    						Duration: 1234 * time.Microsecond,
    					},
    				},
    			}},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/phases/addons/proxy/proxy_test.go

    	// Override the default timeouts to be shorter
    	defaultTimeouts := kubeadmapi.GetActiveTimeouts()
    	defaultAPICallTimeout := defaultTimeouts.KubernetesAPICall
    	defaultTimeouts.KubernetesAPICall = &metav1.Duration{Duration: time.Microsecond * 500}
    	defer func() {
    		defaultTimeouts.KubernetesAPICall = defaultAPICallTimeout
    	}()
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 11:14:32 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator_test.go

    	a.AuthenticateToken(context.Background(), "bad2")
    	a.AuthenticateToken(context.Background(), "bad3")
    	fakeClock.Step(2 * time.Microsecond)
    	a.AuthenticateToken(context.Background(), "bad1")
    	a.AuthenticateToken(context.Background(), "bad2")
    	a.AuthenticateToken(context.Background(), "bad3")
    	fakeClock.Step(2 * time.Microsecond)
    	if !reflect.DeepEqual(calledWithToken, []string{"bad1", "bad2", "bad3", "bad1", "bad2", "bad3"}) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  6. src/time/tick_test.go

    	defer wg.Wait()
    
    	// Build up the timer heap.
    	const count = 5000
    	wg.Add(count)
    	for range count {
    		go func() {
    			defer wg.Done()
    			Sleep(10 * Microsecond)
    		}()
    	}
    	for range count {
    		Sleep(1 * Microsecond)
    	}
    
    	// Give ourselves 60 seconds to complete.
    	// This used to reliably fail on a Mac M3 laptop,
    	// which needed 77 seconds.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:10:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/util/etcd/etcd_test.go

    				if err := pod.Create(client); err != nil {
    					t.Errorf("error setting up test creating pod for node %q", pod.NodeName)
    				}
    			}
    			endpoints, err := getEtcdEndpointsWithRetry(client, time.Microsecond*10, time.Millisecond*100)
    			if err != nil && !rt.expectedErr {
    				t.Errorf("got error %q; was expecting no errors", err)
    				return
    			} else if err == nil && rt.expectedErr {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  8. src/cmd/trace/jsontrace_test.go

    		t.Fatal(err)
    	}
    	return data
    }
    
    func sumExecutionTime(data format.Data) (sum time.Duration) {
    	for _, e := range data.Events {
    		sum += time.Duration(e.Dur) * time.Microsecond
    	}
    	return
    }
    
    func getTestTrace(t *testing.T, testPath string) *parsedTrace {
    	t.Helper()
    
    	// First read in the text trace and write it out as bytes.
    	f, err := os.Open(testPath)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/plan9/syscall_plan9.go

    }
    
    type Timespec struct {
    	Sec  int32
    	Nsec int32
    }
    
    type Timeval struct {
    	Sec  int32
    	Usec int32
    }
    
    func NsecToTimeval(nsec int64) (tv Timeval) {
    	nsec += 999 // round up to microsecond
    	tv.Usec = int32(nsec % 1e9 / 1e3)
    	tv.Sec = int32(nsec / 1e9)
    	return
    }
    
    func nsec() int64 {
    	var scratch int64
    
    	r0, _, _ := Syscall(SYS_NSEC, uintptr(unsafe.Pointer(&scratch)), 0, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 22:24:28 UTC 2022
    - 7K bytes
    - Viewed (0)
  10. src/time/time_test.go

    	{"1.0040s", 1*Second + 4*Millisecond},
    	{"100.00100s", 100*Second + 1*Millisecond},
    	// different units
    	{"10ns", 10 * Nanosecond},
    	{"11us", 11 * Microsecond},
    	{"12µs", 12 * Microsecond}, // U+00B5
    	{"12μs", 12 * Microsecond}, // U+03BC
    	{"13ms", 13 * Millisecond},
    	{"14s", 14 * Second},
    	{"15m", 15 * Minute},
    	{"16h", 16 * Hour},
    	// composite durations
    	{"3h30m", 3*Hour + 30*Minute},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
Back to top