Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 85 for microsecond (0.16 sec)

  1. src/cmd/go/internal/trace/trace.go

    		ID:       id,
    		Time:     float64(from.end.UnixNano()) / float64(time.Microsecond),
    		Phase:    phaseFlowStart,
    		TID:      from.tid,
    	})
    	tc.t.writeEvent(&format.Event{
    		Name:      from.name + " -> " + to.name,
    		Category:  "flow", // TODO(matloob): Add Category to Flow?
    		ID:        id,
    		Time:      float64(to.start.UnixNano()) / float64(time.Microsecond),
    		Phase:     phaseFlowEnd,
    		TID:       to.tid,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:45:06 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/time/example_test.go

    	// Output: I've got 4.5 hours of work left.
    }
    
    func ExampleDuration_Microseconds() {
    	u, _ := time.ParseDuration("1s")
    	fmt.Printf("One second is %d microseconds.\n", u.Microseconds())
    	// Output:
    	// One second is 1000000 microseconds.
    }
    
    func ExampleDuration_Milliseconds() {
    	u, _ := time.ParseDuration("1s")
    	fmt.Printf("One second is %d milliseconds.\n", u.Milliseconds())
    	// Output:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 01:05:00 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  7. src/net/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 Jan 24 18:06:55 UTC 2024
    - 30K bytes
    - Viewed (0)
  8. tests/test_jsonable_encoder.py

        class ModelWithCustomEncoder(BaseModel):
            dt_field: datetime
    
            @field_serializer("dt_field")
            def serialize_dt_field(self, dt):
                return dt.replace(microsecond=0, tzinfo=timezone.utc).isoformat()
    
        class ModelWithCustomEncoderSubclass(ModelWithCustomEncoder):
            pass
    
        model = ModelWithCustomEncoder(dt_field=datetime(2019, 1, 1, 8))
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/wait/loop_test.go

    			t.Errorf("unexpected error: %v", err)
    		}
    	}()
    
    	for !fakeClock.HasWaiters() {
    		time.Sleep(time.Microsecond)
    	}
    
    	fakeClock.Step(time.Second - time.Millisecond)
    	if attempt != 0 {
    		t.Fatalf("should still be waiting for condition")
    	}
    	fakeClock.Step(2 * time.Millisecond)
    
    	select {
    	case <-doneCh:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 19 02:48:08 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/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)
    }
    
    // Unix returns the time stored in ts as seconds plus nanoseconds.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.2K bytes
    - Viewed (0)
Back to top