Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 875 for Millisecond (0.36 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/integrator_test.go

    		t.Errorf("expected %#+v, got %#+v", e, results)
    	}
    	clk.Step(time.Millisecond)
    	igr.Add(-1)
    	clk.Step(time.Millisecond)
    	results = igr.GetResults()
    	if e := (IntegratorResults{Duration: 2 * time.Millisecond.Seconds(), Average: 1.5, Deviation: 0.5, Min: 1, Max: 3}); !e.Equal(&results) {
    		t.Errorf("expected %#+v, got %#+v", e, results)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 27 21:11:44 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  2. src/os/timeout_test.go

    		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,
    	} {
    		numRuns := 3
    		if testing.Short() {
    			numRuns = 1
    			if timeout > 500*time.Microsecond {
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  3. src/internal/trace/testdata/testprog/gc-stress.go

    	// mid-GC by only starting to trace after a few milliseconds.
    	time.Sleep(5 * time.Millisecond)
    
    	// Start tracing.
    	if err := trace.Start(os.Stdout); err != nil {
    		log.Fatalf("failed to start tracing: %v", err)
    	}
    	defer trace.Stop()
    
    	// Let the tracing happen for a bit.
    	time.Sleep(400 * time.Millisecond)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. src/net/interface_unix_test.go

    			if e := err.Error(); strings.Contains(e, "No such device") && strings.Contains(e, "gre0") {
    				t.Skip("skipping test; no gre0 device. likely running in container?")
    			}
    			t.Fatal(err)
    		} else {
    			time.Sleep(3 * time.Millisecond)
    		}
    		ift, err := Interfaces()
    		if err != nil {
    			ti.teardown()
    			t.Fatal(err)
    		}
    		for _, ifi := range ift {
    			if ti.name != ifi.Name {
    				continue
    			}
    			ifat, err := ifi.Addrs()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 23:51:35 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  5. src/net/tcpsockopt_windows.go

    	}
    	if interval == 0 {
    		interval = defaultTCPKeepAliveInterval
    	}
    
    	// The kernel expects milliseconds so round to next highest
    	// millisecond.
    	tcpKeepAliveIdle := uint32(roundDurationUp(idle, time.Millisecond))
    	tcpKeepAliveInterval := uint32(roundDurationUp(interval, time.Millisecond))
    	ka := syscall.TCPKeepalive{
    		OnOff:    1,
    		Time:     tcpKeepAliveIdle,
    		Interval: tcpKeepAliveInterval,
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:35 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. pkg/config/mesh/kubemesh/watcher_test.go

    	})
    	t.Run("only user", func(t *testing.T) {
    		cms, w := setup(t)
    		if _, err := cms.Create(context.Background(), cmUser, metav1.CreateOptions{}); err != nil {
    			t.Fatal(err)
    		}
    		retry.UntilOrFail(t, func() bool { return w.Mesh().GetIngressClass() == "user" }, retry.Delay(time.Millisecond), retry.Timeout(time.Second))
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  7. test/fixedbugs/issue19182.go

    	go func() {
    		for {
    			atomic.AddUint64(&a, uint64(1))
    		}
    	}()
    
    	time.Sleep(10 * time.Millisecond) // Short sleep is enough in passing case
    	i, val := 0, atomic.LoadUint64(&a)
    	for ; val == 0 && i < 100; val, i = atomic.LoadUint64(&a), i+1 {
    		time.Sleep(100 * time.Millisecond)
    	}
    	if val == 0 {
    		fmt.Printf("Failed to observe atomic increment after %d tries\n", i)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 737 bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/cover_pattern.txt

    -- sleepy1/p_test.go --
    package p
    
    import (
    	"testing"
    	"time"
    )
    
    func Test1(t *testing.T) {
    	time.Sleep(200 * time.Millisecond)
    }
    -- sleepy2/p_test.go --
    package p
    
    import (
    	"testing"
    	"time"
    )
    
    func Test1(t *testing.T) {
    	time.Sleep(200 * time.Millisecond)
    }
    -- sleepybad/p.go --
    package p
    
    import ^
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 683 bytes
    - Viewed (0)
  9. pkg/test/util/retry/retry_test.go

    		flipFlop := true
    		err := UntilSuccess(func() error {
    			flipFlop = !flipFlop
    			if flipFlop {
    				return fmt.Errorf("flipFlop was true")
    			}
    			return nil
    		}, Converge(2), Timeout(time.Millisecond*10), Delay(time.Millisecond))
    		if err == nil {
    			t.Fatal("expected no convergence, but test passed")
    		}
    	})
    
    	t.Run("converge", func(t *testing.T) {
    		n := 0
    		err := UntilSuccess(func() error {
    			n++
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 19:13:32 UTC 2023
    - 2K bytes
    - Viewed (0)
  10. test/fixedbugs/issue38093.go

    package main
    
    import (
    	"os"
    	"syscall/js"
    	"time"
    )
    
    func main() {
    	ch1 := make(chan struct{})
    
    	go func() {
    		for {
    			time.Sleep(5 * time.Millisecond)
    			ch1 <- struct{}{}
    		}
    	}()
    	go func() {
    		for {
    			time.Sleep(8 * time.Millisecond)
    			ch1 <- struct{}{}
    		}
    	}()
    	go func() {
    		time.Sleep(2 * time.Second)
    		os.Exit(0)
    	}()
    
    	for range ch1 {
    		ch2 := make(chan struct{}, 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 861 bytes
    - Viewed (0)
Back to top