Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 8,625 for tims (0.16 sec)

  1. src/cmd/compile/internal/base/timings.go

    		}
    
    		// accumulated time between Stop/Start timestamps
    		var unaccounted time.Duration
    
    		// process Start/Stop timestamps
    		pt := &t.list[0] // previous timestamp
    		tot := t.list[len(t.list)-1].time.Sub(pt.time)
    		for i := 1; i < len(t.list); i++ {
    			qt := &t.list[i] // current timestamp
    			dt := qt.time.Sub(pt.time)
    
    			var label string
    			var events []*event
    			if pt.start {
    				// previous phase started
    				label = pt.label
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/configuration/mutating_webhook_manager_test.go

    	// Wait up to 10s for the notification to be delivered.
    	// (on my system this takes < 2ms)
    	startTime := time.Now()
    	configurations := manager.Webhooks()
    	for len(configurations) == 0 {
    		if time.Since(startTime) > 10*time.Second {
    			break
    		}
    		time.Sleep(time.Millisecond)
    		configurations = manager.Webhooks()
    	}
    
    	// verify presence
    	if len(configurations) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 15:20:14 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/kube/controller/pod_test.go

    		t.Errorf("notified workload handler %d times, want %d", handled, 2)
    	}
    	assert.Equal(t, podCache.getPodKeys(ip), nil)
    
    	pod1.DeletionTimestamp = &metav1.Time{Time: time.Now()}
    	if err := f(nil, &v1.Pod{ObjectMeta: pod1, Status: v1.PodStatus{PodIP: ip, Phase: v1.PodFailed}}, model.EventUpdate); err != nil {
    		t.Error(err)
    	}
    	if handled != 2 {
    		t.Errorf("notified workload handler %d times, want %d", handled, 2)
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 18:27:40 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/managedfields/scalehandler.go

    					versionedSet.Applied(),
    				)
    				f[manager] = newVersionedSet
    				t[manager] = decodedParentEntries.Times()[manager]
    			}
    		} else {
    			// Field wasn't stolen, let's keep the entry as it is.
    			f[manager] = versionedSet
    			t[manager] = decodedParentEntries.Times()[manager]
    			delete(scaleFields, manager)
    		}
    	}
    
    	for manager, versionedSet := range scaleFields {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  5. security/pkg/credentialfetcher/plugin/gce_test.go

    func TestShouldRotate(t *testing.T) {
    	jwtExp := time.Date(2020, time.April, 5, 10, 13, 54, 0, time.FixedZone("PDT", -int((7*time.Hour).Seconds())))
    	testCases := map[string]struct {
    		jwt            string
    		now            time.Time
    		expectedRotate bool
    	}{
    		"remaining life time is in grace period": {
    			jwt:            thirdPartyJwt,
    			now:            jwtExp.Add(time.Duration(-10) * time.Minute),
    			expectedRotate: true,
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 03 18:09:59 UTC 2021
    - 10.1K bytes
    - Viewed (0)
  6. pkg/cache/ttlCache.go

    		return nil, false
    	}
    
    	// Note that we could check the current time here and discard the returned value
    	// if the expiration time has passed. But this would increase this function's execution
    	// time by > 50% (since time.Now is relatively expensive). Instead, we don't check time
    	// here and accept some imprecision in actual eviction times.
    
    	atomic.AddUint64(&c.stats.Hits, 1)
    	return e.(*entry).value, true
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  7. src/time/zoneinfo.go

    package time
    
    import (
    	"errors"
    	"sync"
    	"syscall"
    )
    
    //go:generate env ZONEINFO=$GOROOT/lib/time/zoneinfo.zip go run genzabbrs.go -output zoneinfo_abbrs_windows.go
    
    // A Location maps time instants to the zone in use at that time.
    // Typically, the Location represents the collection of time offsets
    // in use in a geographical area. For many Locations the time offset varies
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:30 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  8. src/time/sleep_test.go

    	}
    	var order []int
    	var times []Time
    	for range slots {
    		r := <-result
    		order = append(order, r.slot)
    		times = append(times, r.t)
    	}
    	for i := range order {
    		if i > 0 && order[i] < order[i-1] {
    			return fmt.Errorf("After calls returned out of order: %v", order)
    		}
    	}
    	for i, t := range times {
    		dt := t.Sub(t0)
    		target := Duration(order[i]) * delta
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:33:57 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  9. src/internal/trace/testdata/testprog/many-start-stop.go

    // license that can be found in the LICENSE file.
    
    // Tests simply starting and stopping tracing multiple times.
    //
    // This is useful for finding bugs in trace state reset.
    
    //go:build ignore
    
    package main
    
    import (
    	"bytes"
    	"log"
    	"os"
    	"runtime"
    	"runtime/trace"
    )
    
    func main() {
    	// Trace a few times.
    	for i := 0; i < 10; i++ {
    		var buf bytes.Buffer
    		if err := trace.Start(&buf); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 786 bytes
    - Viewed (0)
  10. testing/performance/src/templates/java-source/Production.java

        public boolean check(${it.type} o) {
            // dummy code to add arbitrary compile time
            String p = o.getProperty();
            p = p.toUpperCase();
            List<String> strings = Arrays.asList(p, this.getProperty());
            int len = 0;
            for (String s: strings) {
                len += s.length();
                <% propertyCount.times { %>
                len += o.getProp${it}().length();
                <%}%>
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.2K bytes
    - Viewed (0)
Back to top