- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 875 for Millisecond (0.19 sec)
-
src/runtime/race/testdata/finalizer_test.go
}() <-c runtime.GC() time.Sleep(100 * time.Millisecond) finVar.Lock() finVar.cnt++ finVar.Unlock() } func TestRaceFin(t *testing.T) { c := make(chan bool) y := 0 _ = y go func() { x := new(string) runtime.SetFinalizer(x, func(x *string) { y = 42 }) c <- true }() <-c runtime.GC() time.Sleep(100 * time.Millisecond) y = 66
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 03 22:09:38 UTC 2017 - 1K bytes - Viewed (0) -
src/time/mono_test.go
sub("t1", "t2", t1, t1w, t2, t2w, -10*Millisecond, 990*Millisecond) sub("t1", "t3", t1, t1w, t3, t3w, -1000*Millisecond, 0) sub("t2", "t1", t2, t2w, t1, t1w, 10*Millisecond, -990*Millisecond) sub("t2", "t2", t2, t2w, t2, t2w, 0, 0) sub("t2", "t3", t2, t2w, t3, t3w, -990*Millisecond, -990*Millisecond) sub("t3", "t1", t3, t3w, t1, t1w, 1000*Millisecond, 0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 19 17:10:49 UTC 2022 - 8.3K bytes - Viewed (0) -
internal/dsync/dsync_test.go
"github.com/google/uuid" ) const ( testDrwMutexAcquireTimeout = 250 * time.Millisecond testDrwMutexRefreshCallTimeout = 250 * time.Millisecond testDrwMutexUnlockCallTimeout = 250 * time.Millisecond testDrwMutexForceUnlockCallTimeout = 250 * time.Millisecond testDrwMutexRefreshInterval = 100 * time.Millisecond ) // TestMain initializes the testing framework func TestMain(m *testing.M) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Dec 24 03:49:07 UTC 2022 - 11K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/duration_test.go
{"d: 5s\n", Duration{5 * time.Second}}, {"d: 2m0s\n", Duration{2 * time.Minute}}, {"d: 1h0m0.003s\n", Duration{time.Hour + 3*time.Millisecond}}, // Units with zero values can optionally be dropped {"d: 2m\n", Duration{2 * time.Minute}}, {"d: 1h0.003s\n", Duration{time.Hour + 3*time.Millisecond}}, } for _, c := range cases { var result DurationHolder if err := yaml.Unmarshal([]byte(c.input), &result); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 07 18:17:32 UTC 2018 - 4.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/seat_seconds_test.go
expect time.Duration }{ {ss: SeatsTimesDuration(10, time.Second), seats: 1, expect: 10 * time.Second}, {ss: SeatsTimesDuration(1, time.Second), seats: 10, expect: 100 * time.Millisecond}, {ss: SeatsTimesDuration(13, 5*time.Millisecond), seats: 5, expect: 13 * time.Millisecond}, {ss: SeatsTimesDuration(12, 0), seats: 10, expect: 0}, } for _, testCase := range testCases { actualDuration := testCase.ss.DurationPerSeat(testCase.seats)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 29 20:20:16 UTC 2021 - 2.5K bytes - Viewed (0) -
src/internal/trace/testdata/testprog/stress.go
var tmp [1]byte rp.Read(tmp[:]) <-done wg.Done() }() time.Sleep(time.Millisecond) // give the goroutine above time to block if err := trace.Start(os.Stdout); err != nil { log.Fatalf("failed to start tracing: %v", err) } defer trace.Stop() procs := runtime.GOMAXPROCS(10) time.Sleep(50 * time.Millisecond) // test proc stop/start events go func() { runtime.LockOSThread() for { select {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 2.5K bytes - Viewed (0) -
src/runtime/race/testdata/waitgroup_test.go
c := make(chan bool, 2) var wg sync.WaitGroup go func() { wg.Add(1) time.Sleep(100 * time.Millisecond) wg.Done() c <- true }() go func() { wg.Add(1) time.Sleep(100 * time.Millisecond) wg.Done() c <- true }() time.Sleep(50 * time.Millisecond) wg.Wait() <-c <-c } func TestNoRaceWaitGroupMultipleWait(t *testing.T) { c := make(chan bool, 2)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 03 22:09:38 UTC 2017 - 5.3K bytes - Viewed (0) -
src/internal/trace/testdata/testprog/stress-start-stop.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 2.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/eventclock/real_event_clock_test.go
} } if abs { ec.EventAfterTime(f, now.Add(d)) } else { ec.EventAfterDuration(f, d) } } try(true, time.Millisecond*3300) for i := 0; i < batchSize; i++ { d := time.Duration(rand.Intn(30)-3) * time.Millisecond * 100 try(i%2 == 0, d) } time.Sleep(time.Second * 4) if atomic.LoadInt32(&numDone) != batchSize+1 { t.Errorf("Got only %v events", numDone) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Aug 07 04:07:31 UTC 2021 - 1.6K bytes - Viewed (0) -
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)