Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 142 for Microseconds (0.63 sec)

  1. docs/en/docs/tutorial/bigger-applications.md

        So, behind the scenes, it will actually work as if everything was the same single app.
    
    !!! check
        You don't have to worry about performance when including routers.
    
        This will take microseconds and will only happen at startup.
    
        So it won't affect performance. ⚡
    
    ### Include an `APIRouter` with a custom `prefix`, `tags`, `responses`, and `dependencies`
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

       *
       * <p>This always holds: {@code 0 <= permitsToTake <= storedPermits}
       */
      abstract long storedPermitsToWaitTime(double storedPermits, double permitsToTake);
    
      /**
       * Returns the number of microseconds during cool down that we have to wait to get a new permit.
       */
      abstract double coolDownIntervalMicros();
    
      /** Updates {@code storedPermits} and {@code nextFreeTicketMicros} based on the current time. */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  3. src/time/time_test.go

    	{"1.0040s", 1*Second + 4*Millisecond},
    	{"100.00100s", 100*Second + 1*Millisecond},
    	// different units
    	{"10ns", 10 * Nanosecond},
    	{"11us", 11 * Microsecond},
    	{"12µs", 12 * Microsecond}, // U+00B5
    	{"12μs", 12 * Microsecond}, // U+03BC
    	{"13ms", 13 * Millisecond},
    	{"14s", 14 * Second},
    	{"15m", 15 * Minute},
    	{"16h", 16 * Hour},
    	// composite durations
    	{"3h30m", 3*Hour + 30*Minute},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/google/pprof/profile/legacy_profile.go

    // binary format. The first words are a header with the following data:
    //
    //	1st word -- 0
    //	2nd word -- 3
    //	3rd word -- 0 if a c++ application, 1 if a java application.
    //	4th word -- Sampling period (in microseconds).
    //	5th word -- Padding.
    func parseCPU(b []byte) (*Profile, error) {
    	var parse func([]byte) (uint64, []byte)
    	var n1, n2, n3, n4, n5 uint64
    	for _, parse = range cpuInts {
    		var tmp []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 32.8K bytes
    - Viewed (0)
  5. src/runtime/metrics_test.go

    	name := t.Name()
    
    	t.Run("runtime.lock", func(t *testing.T) {
    		mus := make([]runtime.Mutex, 200)
    		var needContention atomic.Int64
    		delay := 100 * time.Microsecond // large relative to system noise, for comparison between clocks
    		delayMicros := delay.Microseconds()
    
    		// The goroutine that acquires the lock will only proceed when it
    		// detects that its partner is contended for the lock. That will lead to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  6. cmd/metrics-v2.go

    				})
    
    				for apiName, latency := range disk.Metrics.LastMinute {
    					metrics = append(metrics, MetricV2{
    						Description:    getNodeDriveAPILatencyMD(),
    						Value:          float64(latency.Avg().Microseconds()),
    						VariableLabels: map[string]string{"drive": disk.DrivePath, "api": "storage." + apiName},
    					})
    				}
    			}
    		}
    
    		metrics = append(metrics, MetricV2{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:54 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  7. src/log/log.go

    //
    //	2009/01/23 01:23:23 message
    //
    // while flags Ldate | Ltime | Lmicroseconds | Llongfile produce,
    //
    //	2009/01/23 01:23:23.123123 /a/b/c/d.go:23: message
    const (
    	Ldate         = 1 << iota     // the date in the local time zone: 2009/01/23
    	Ltime                         // the time in the local time zone: 01:23:23
    	Lmicroseconds                 // microsecond resolution: 01:23:23.123123.  assumes Ltime.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 22:56:07 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  8. pkg/queue/instance_test.go

    	"time"
    
    	"go.uber.org/atomic"
    
    	"istio.io/istio/pkg/test/util/assert"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    func TestOrdering(t *testing.T) {
    	numValues := 1000
    
    	q := NewQueue(1 * time.Microsecond)
    	stop := make(chan struct{})
    	defer close(stop)
    
    	wg := sync.WaitGroup{}
    	wg.Add(numValues)
    	mu := sync.Mutex{}
    	out := make([]int, 0)
    	for i := 0; i < numValues; i++ {
    		i := i
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jul 21 16:30:36 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  9. tests/test_datetime_custom_encoder.py

        class ModelWithDatetimeField(BaseModel):
            dt_field: datetime
    
            @field_serializer("dt_field")
            def serialize_datetime(self, dt_field: datetime):
                return dt_field.replace(microsecond=0, tzinfo=timezone.utc).isoformat()
    
        app = FastAPI()
        model = ModelWithDatetimeField(dt_field=datetime(2019, 1, 1, 8))
    
        @app.get("/model", response_model=ModelWithDatetimeField)
        def get_model():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. 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)
Back to top