Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 48 of 48 for t0 (0.07 sec)

  1. src/time/example_test.go

    // license that can be found in the LICENSE file.
    
    package time_test
    
    import (
    	"fmt"
    	"time"
    )
    
    func expensiveCall() {}
    
    func ExampleDuration() {
    	t0 := time.Now()
    	expensiveCall()
    	t1 := time.Now()
    	fmt.Printf("The call took %v to run.\n", t1.Sub(t0))
    }
    
    func ExampleDuration_Round() {
    	d, err := time.ParseDuration("1h15m30.918273645s")
    	if err != nil {
    		panic(err)
    	}
    
    	round := []time.Duration{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 01:05:00 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  2. pilot/pkg/xds/delta.go

    	if w == nil {
    		return nil
    	}
    	gen := s.findGenerator(w.TypeUrl, con)
    	if gen == nil {
    		return nil
    	}
    	t0 := time.Now()
    
    	originalW := w
    	// If delta is set, client is requesting new resources or removing old ones. We should just generate the
    	// new resources it needs, rather than the entire set of known resources.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        if (profileTests) runTestProfiled();
        else super.runTest();
      }
    
      protected void runTestProfiled() throws Throwable {
        long t0 = System.nanoTime();
        try {
          super.runTest();
        } finally {
          long elapsedMillis = (System.nanoTime() - t0) / (1000L * 1000L);
          if (elapsedMillis >= profileThreshold)
            System.out.printf("%n%s: %d%n", toString(), elapsedMillis);
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  4. pkg/test/framework/components/istio/kube.go

    		istiod:               map[string]istiokube.PortForwarder{},
    		externalControlPlane: ctx.AllClusters().IsExternalControlPlane(),
    	}
    
    	t0 := time.Now()
    	defer func() {
    		ctx.RecordTraceEvent("istio-deploy", time.Since(t0).Seconds())
    	}()
    	i.id = ctx.TrackResource(i)
    
    	if !cfg.DeployIstio {
    		scopes.Framework.Info("skipping deployment as specified in the config")
    		return i, nil
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        if (profileTests) runTestProfiled();
        else super.runTest();
      }
    
      protected void runTestProfiled() throws Throwable {
        long t0 = System.nanoTime();
        try {
          super.runTest();
        } finally {
          long elapsedMillis = (System.nanoTime() - t0) / (1000L * 1000L);
          if (elapsedMillis >= profileThreshold)
            System.out.printf("%n%s: %d%n", toString(), elapsedMillis);
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  6. src/encoding/gob/encoder_test.go

    	if err != nil {
    		return err
    	}
    	return nil
    }
    
    func TestTypeToPtrType(t *testing.T) {
    	// Encode a T, decode a *T
    	type Type0 struct {
    		A int
    	}
    	t0 := Type0{7}
    	t0p := new(Type0)
    	if err := encAndDec(t0, t0p); err != nil {
    		t.Error(err)
    	}
    }
    
    func TestPtrTypeToType(t *testing.T) {
    	// Encode a *T, decode a T
    	type Type1 struct {
    		A uint
    	}
    	t1p := &Type1{17}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/typecheck/typecheck.go

    	}
    
    	// Rewrite f(g()) into t1, t2, ... = g(); f(t1, t2, ...).
    	RewriteMultiValueCall(n, list[0])
    }
    
    // RewriteNonNameCall replaces non-Name call expressions with temps,
    // rewriting f()(...) to t0 := f(); t0(...).
    func RewriteNonNameCall(n *ir.CallExpr) {
    	np := &n.Fun
    	if dot, ok := (*np).(*ir.SelectorExpr); ok && (dot.Op() == ir.ODOTMETH || dot.Op() == ir.ODOTINTER || dot.Op() == ir.OMETHVALUE) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  8. pkg/kube/inject/webhook.go

    	totalSuccessfulInjections.Increment()
    	return &reviewResponse
    }
    
    func (wh *Webhook) serveInject(w http.ResponseWriter, r *http.Request) {
    	totalInjections.Increment()
    	t0 := time.Now()
    	defer func() { injectionTime.Record(time.Since(t0).Seconds()) }()
    	var body []byte
    	if r.Body != nil {
    		if data, err := kube.HTTPConfigReader(r); err == nil {
    			body = data
    		} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:59:39 UTC 2024
    - 42.2K bytes
    - Viewed (0)
Back to top