Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for timeEnd (0.39 sec)

  1. src/testing/testing.go

    //	        rand.Int()
    //	    }
    //	}
    //
    // The benchmark function must run the target code b.N times.
    // It is called multiple times with b.N adjusted until the
    // benchmark function lasts long enough to be timed reliably.
    // The output
    //
    //	BenchmarkRandInt-8   	68453040	        17.8 ns/op
    //
    // means that the loop ran 68453040 times at a speed of 17.8 ns per loop.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  2. pkg/controller/disruption/disruption_test.go

    	for {
    		select {
    		case e := <-dc.recorder.(*record.FakeRecorder).Events:
    			if strings.Contains(e, expectedEvent) {
    				return
    			}
    		case <-ticker.C:
    			t.Fatalf("Timed out: expected event not generated: %v", expectedEvent)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 50K bytes
    - Viewed (0)
  3. src/crypto/tls/handshake_server_test.go

    	case connOrError := <-connChan:
    		if err, ok := connOrError.(error); ok {
    			return nil, nil, err
    		}
    		tcpConn = connOrError.(net.Conn)
    	case <-time.After(2 * time.Second):
    		return nil, nil, errors.New("timed out waiting for connection from child process")
    	}
    
    	record := &recordingConn{
    		Conn: tcpConn,
    	}
    
    	return record, cmd, nil
    }
    
    func (test *serverTest) dataPath() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/devicemanager/manager_test.go

    	as.Nil(err)
    	runContainerOpts, err := testManager.GetDeviceRunContainerOptions(pod, &pod.Spec.Containers[0])
    	as.Nil(err)
    	var initializedDevs []string
    	select {
    	case <-time.After(time.Second):
    		t.Fatalf("Timed out while waiting on channel for response from PreStartContainer RPC stub")
    	case initializedDevs = <-ch:
    		break
    	}
    
    	as.Contains(initializedDevs, "dev1")
    	as.Contains(initializedDevs, "dev2")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  5. src/time/time.go

    // monotonic clock reading.
    //
    // For example, this code always computes a positive elapsed time of
    // approximately 20 milliseconds, even if the wall clock is changed during
    // the operation being timed:
    //
    //	start := time.Now()
    //	... operation that takes 20 milliseconds ...
    //	t := time.Now()
    //	elapsed := t.Sub(start)
    //
    // Other idioms, such as [time.Since](start), [time.Until](deadline), and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  6. src/runtime/pprof/pprof_test.go

    	if deadline, ok := t.Deadline(); ok {
    		if d := time.Until(deadline); d > 1*time.Second {
    			timer := time.AfterFunc(d-1*time.Second, func() {
    				debug.SetTraceback("all")
    				panic(fmt.Sprintf("timed out waiting for %#q", re))
    			})
    			defer timer.Stop()
    		}
    	}
    
    	buf := make([]byte, 64<<10)
    	for {
    		runtime.Gosched()
    		n := runtime.Stack(buf, true)
    		if n == len(buf) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  7. src/cmd/go/internal/test/test.go

    		// overhead, and scale it up from there proportional to the overall test
    		// timeout on the assumption that the time to write and read a goroutine
    		// dump from a timed-out test process scales roughly with the overall
    		// running time of the test.
    		//
    		// This is probably too generous when the timeout is very long, but it seems
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  8. src/net/http/transport.go

    		panic("net/http: internal error: connCount underflow")
    	}
    
    	// Can we hand this count to a goroutine still waiting to dial?
    	// (Some goroutines on the wait list may have timed out or
    	// gotten a connection another way. If they're all gone,
    	// we don't want to kick off any spurious dial operations.)
    	if q := t.connsPerHostWait[key]; q.len() > 0 {
    		done := false
    		for q.len() > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
Back to top