Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 49 for Microseconds (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/os/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 Jun 14 00:03:57 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  6. src/runtime/proc_test.go

    		b.Skip("skipping: GOMAXPROCS=1")
    	}
    
    	wakeDelay := 5 * time.Microsecond
    	for _, delay := range []time.Duration{
    		0,
    		1 * time.Microsecond,
    		2 * time.Microsecond,
    		5 * time.Microsecond,
    		10 * time.Microsecond,
    		20 * time.Microsecond,
    		50 * time.Microsecond,
    		100 * time.Microsecond,
    	} {
    		b.Run(delay.String(), func(b *testing.B) {
    			if b.N == 0 {
    				return
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.8K 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. 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)
  9. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_test.go

    func TestMicroTimeUnmarshalJSONAndProtoEqual(t *testing.T) {
    	cases := []struct {
    		name   string
    		input  MicroTime
    		result bool
    	}{
    		{"nanosecond level precision", UnixMicro(123, 123123123), true},
    		{"microsecond level precision", UnixMicro(123, 123123000), true},
    	}
    
    	for _, c := range cases {
    		t.Run(c.name, func(t *testing.T) {
    			jsonData, err := c.input.MarshalJSON()
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/wait/wait_test.go

    		f := ConditionFunc(func() (bool, error) {
    			ch <- struct{}{}
    			select {
    			case <-done:
    				return true, nil
    			default:
    			}
    			return false, nil
    		})
    
    		if err := PollInfinite(time.Microsecond, f); err != nil {
    			errc <- fmt.Errorf("unexpected error %v", err)
    		}
    
    		close(ch)
    		complete <- struct{}{}
    	}()
    
    	// ensure the condition is opened
    	<-ch
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 41.1K bytes
    - Viewed (0)
Back to top