Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Microseconds (0.55 sec)

  1. src/time/time.go

    		}
    	}
    	return w
    }
    
    // Nanoseconds returns the duration as an integer nanosecond count.
    func (d Duration) Nanoseconds() int64 { return int64(d) }
    
    // Microseconds returns the duration as an integer microsecond count.
    func (d Duration) Microseconds() int64 { return int64(d) / 1e3 }
    
    // Milliseconds returns the duration as an integer millisecond count.
    func (d Duration) Milliseconds() int64 { return int64(d) / 1e6 }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  2. 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)
  3. src/time/format.go

    		}
    		x = y
    		scale *= 10
    	}
    	return x, scale, s[i:]
    }
    
    var unitMap = map[string]uint64{
    	"ns": uint64(Nanosecond),
    	"us": uint64(Microsecond),
    	"µs": uint64(Microsecond), // U+00B5 = micro symbol
    	"μs": uint64(Microsecond), // U+03BC = Greek letter mu
    	"ms": uint64(Millisecond),
    	"s":  uint64(Second),
    	"m":  uint64(Minute),
    	"h":  uint64(Hour),
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:28 UTC 2024
    - 49.3K bytes
    - Viewed (0)
  4. src/crypto/tls/tls_test.go

    	}
    	if err != nil {
    		t.Fatal(err)
    	}
    	return ln
    }
    
    func TestDialTimeout(t *testing.T) {
    	if testing.Short() {
    		t.Skip("skipping in short mode")
    	}
    
    	timeout := 100 * time.Microsecond
    	for !t.Failed() {
    		acceptc := make(chan net.Conn)
    		listener := newLocalListener(t)
    		go func() {
    			for {
    				conn, err := listener.Accept()
    				if err != nil {
    					close(acceptc)
    					return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  5. src/net/http/httputil/reverseproxy_test.go

    	}))
    	defer backend.Close()
    
    	backendURL, err := url.Parse(backend.URL)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	proxyHandler := NewSingleHostReverseProxy(backendURL)
    	proxyHandler.FlushInterval = time.Microsecond
    
    	frontend := httptest.NewServer(proxyHandler)
    	defer frontend.Close()
    
    	req, _ := http.NewRequest("GET", frontend.URL, nil)
    	req.Close = true
    	res, err := frontend.Client().Do(req)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  6. src/net/dnsclient_unix_test.go

    func TestDNSGoroutineRace(t *testing.T) {
    	defer dnsWaitGroup.Wait()
    
    	fake := fakeDNSServer{rh: func(n, s string, q dnsmessage.Message, t time.Time) (dnsmessage.Message, error) {
    		time.Sleep(10 * time.Microsecond)
    		return dnsmessage.Message{}, os.ErrDeadlineExceeded
    	}}
    	r := Resolver{PreferGo: true, Dial: fake.DialContext}
    
    	// The timeout here is less than the timeout used by the server,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  7. pkg/kubelet/kuberuntime/kuberuntime_manager.go

    	podResources := cm.ResourceConfigForPod(pod, m.cpuCFSQuota, uint64((m.cpuCFSQuotaPeriod.Duration)/time.Microsecond), false)
    	if podResources == nil {
    		klog.ErrorS(nil, "Unable to get resource configuration", "pod", pod.Name)
    		result.Fail(fmt.Errorf("Unable to get resource configuration processing resize for pod %s", pod.Name))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  8. common-protos/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto

      // Note that the APIVersion field is not related to the Subresource field and
      // it always corresponds to the version of the main resource.
      optional string subresource = 8;
    }
    
    // MicroTime is version of Time with microsecond level precision.
    //
    // +protobuf.options.marshal=false
    // +protobuf.as=Timestamp
    // +protobuf.options.(gogoproto.goproto_stringer)=false
    message MicroTime {
      // Represents seconds of UTC time since Unix epoch
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto

      // Note that the APIVersion field is not related to the Subresource field and
      // it always corresponds to the version of the main resource.
      optional string subresource = 8;
    }
    
    // MicroTime is version of Time with microsecond level precision.
    //
    // +protobuf.options.marshal=false
    // +protobuf.as=Timestamp
    // +protobuf.options.(gogoproto.goproto_stringer)=false
    message MicroTime {
      // Represents seconds of UTC time since Unix epoch
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 53.7K bytes
    - Viewed (0)
Back to top