Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 62 for Microseconds (0.33 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/cmd/vendor/golang.org/x/telemetry/internal/upload/run.go

    	switch len(logWriters) {
    	case 0:
    		logWriter = io.Discard
    	case 1:
    		logWriter = logWriters[0]
    	default:
    		logWriter = io.MultiWriter(logWriters...)
    	}
    	logger := log.New(logWriter, "", log.Ltime|log.Lmicroseconds|log.Lshortfile)
    
    	// Fetch the upload config, if it is not provided.
    	config, configVersion, err := configstore.Download("latest", rcfg.Env)
    	if err != nil {
    		return nil, err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:12:15 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top