Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 142 for microsecond (0.17 sec)

  1. pkg/kubelet/cm/helpers_linux_test.go

    }
    
    func TestResourceConfigForPodWithCustomCPUCFSQuotaPeriod(t *testing.T) {
    	defaultQuotaPeriod := uint64(100 * time.Millisecond / time.Microsecond) // in microseconds
    	tunedQuotaPeriod := uint64(5 * time.Millisecond / time.Microsecond)     // in microseconds
    	tunedQuota := int64(1 * time.Millisecond / time.Microsecond)
    
    	featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, pkgfeatures.CPUCFSQuotaPeriod, true)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testsanitizers/testdata/msan8.go

    	go func() {
    		defer func() { c <- true }()
    		C.msanGoLoop()
    	}()
    
    	for C.msanGoReady() == 0 {
    		time.Sleep(time.Microsecond)
    	}
    
    loop:
    	for {
    		select {
    		case <-c:
    			break loop
    		default:
    			C.msanGoSendSignal()
    			time.Sleep(time.Microsecond)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:30:58 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. src/os/timeout_test.go

    		50 * time.Nanosecond,
    		100 * time.Nanosecond,
    		200 * time.Nanosecond,
    		500 * time.Nanosecond,
    		750 * time.Nanosecond,
    		1 * time.Microsecond,
    		5 * time.Microsecond,
    		25 * time.Microsecond,
    		250 * time.Microsecond,
    		500 * time.Microsecond,
    		1 * time.Millisecond,
    		5 * time.Millisecond,
    		100 * time.Millisecond,
    		250 * time.Millisecond,
    		500 * time.Millisecond,
    		1 * time.Second,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  4. test/fixedbugs/issue17918.go

    	units = []struct {
    		divisor time.Duration
    		unit    rune
    	}{
    		{1000000, 's'},
    		{60, 'm'},
    		{60, 'h'},
    		{24, 'd'},
    		{7, 'w'},
    	}
    )
    
    func foobar(d time.Duration) string {
    	d /= time.Microsecond
    	unit := 'u'
    
    	for _, f := range units {
    		if d%f.divisor != 0 {
    			break
    		}
    		d /= f.divisor
    		unit = f.unit
    	}
    	return fmt.Sprintf("%d%c", d, unit)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 16:31:27 UTC 2016
    - 619 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testsanitizers/testdata/tsan7.go

    import "C"
    
    import (
    	"fmt"
    	"os"
    	"sync"
    	"time"
    )
    
    func main() {
    	var wg sync.WaitGroup
    	var mu sync.Mutex
    	f := func() {
    		defer wg.Done()
    		for i := 0; i < 100; i++ {
    			time.Sleep(time.Microsecond)
    			mu.Lock()
    			s := fmt.Sprint(i)
    			os.Setenv("TSAN_TEST"+s, s)
    			mu.Unlock()
    		}
    	}
    	wg.Add(2)
    	go f()
    	go f()
    	wg.Wait()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 708 bytes
    - Viewed (0)
  6. src/runtime/proc_test.go

    		b.Skip("skipping: GOMAXPROCS=1")
    	}
    
    	wakeDelay := 5 * time.Microsecond
    	for _, delay := range []time.Duration{
    		0,
    		1 * time.Microsecond,
    		2 * time.Microsecond,
    		5 * time.Microsecond,
    		10 * time.Microsecond,
    		20 * time.Microsecond,
    		50 * time.Microsecond,
    		100 * time.Microsecond,
    	} {
    		b.Run(delay.String(), func(b *testing.B) {
    			if b.N == 0 {
    				return
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/plugin/pkg/audit/log/backend_test.go

    			SourceIPs: []string{
    				"127.0.0.1",
    			},
    			RequestReceivedTimestamp: metav1.NewMicroTime(time.Now().Truncate(time.Microsecond)),
    			StageTimestamp:           metav1.NewMicroTime(time.Now().Truncate(time.Microsecond)),
    			AuditID:                  types.UID(uuid.New().String()),
    			Stage:                    auditinternal.StageRequestReceived,
    			Verb:                     "get",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 08 06:37:26 UTC 2022
    - 5K bytes
    - Viewed (0)
  8. src/syscall/timestruct.go

    func TimevalToNsec(tv Timeval) int64 { return tv.Nano() }
    
    // NsecToTimeval converts a number of nanoseconds into a [Timeval].
    func NsecToTimeval(nsec int64) Timeval {
    	nsec += 999 // round up to microsecond
    	usec := nsec % 1e9 / 1e3
    	sec := nsec / 1e9
    	if usec < 0 {
    		usec += 1e6
    		sec--
    	}
    	return setTimeval(sec, usec)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 958 bytes
    - Viewed (0)
  9. pkg/wasm/httpfetcher_test.go

    				c.handler(w, r, gotNumRequest)
    				gotNumRequest++
    			}))
    			defer ts.Close()
    			fetcher := NewHTTPFetcher(DefaultHTTPRequestTimeout, DefaultHTTPRequestMaxRetries)
    			fetcher.initialBackoff = time.Microsecond
    			ctx, cancel := context.WithTimeout(context.Background(), c.timeout)
    			defer cancel()
    			b, err := fetcher.Fetch(ctx, ts.URL, false)
    			if c.wantNumRequest != gotNumRequest {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 15:56:41 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  10. src/cmd/trace/viewer.go

    		return traceviewer.GRunning
    	default:
    		panic(fmt.Sprintf("unknown GoState: %s", state.String()))
    	}
    }
    
    func viewerTime(t time.Duration) float64 {
    	return float64(t) / float64(time.Microsecond)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top