Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,524 for tims (0.11 sec)

  1. src/os/exec_windows.go

    	}
    	return args
    }
    
    func ftToDuration(ft *syscall.Filetime) time.Duration {
    	n := int64(ft.HighDateTime)<<32 + int64(ft.LowDateTime) // in 100-nanosecond intervals
    	return time.Duration(n*100) * time.Nanosecond
    }
    
    func (p *ProcessState) userTime() time.Duration {
    	return ftToDuration(&p.rusage.UserTime)
    }
    
    func (p *ProcessState) systemTime() time.Duration {
    	return ftToDuration(&p.rusage.KernelTime)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. src/log/slog/value_test.go

    	}
    }
    
    func TestValueTime(t *testing.T) {
    	// Validate that all representations of times work correctly.
    	for _, tm := range []time.Time{
    		time.Time{},
    		time.Unix(0, 1e15), // UnixNanos is defined
    		time.Date(2300, 1, 1, 0, 0, 0, 0, time.UTC), // overflows UnixNanos
    	} {
    		got := TimeValue(tm).Time()
    		if !got.Equal(tm) {
    			t.Errorf("got %s (%#[1]v), want %s (%#[2]v)", got, tm)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    					name: "foo",
    					ttl:  3 * time.Second,
    				},
    			},
    			kmsv1: true,
    		},
    		{
    			desc:   "Install multiple healthz",
    			config: "testdata/valid-configs/kms/multiple-providers.yaml",
    			want: []healthChecker{
    				&kmsPluginProbe{
    					name: "foo",
    					ttl:  3 * time.Second,
    				},
    				&kmsPluginProbe{
    					name: "bar",
    					ttl:  3 * time.Second,
    				},
    			},
    			kmsv1: true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
  4. src/testing/benchmark.go

    			// So multiply first, then divide.
    			n = goalns * prevIters / prevns
    			// Run more iterations than we think we'll need (1.2x).
    			n += n / 5
    			// Don't grow too fast in case we had timing errors previously.
    			n = min(n, 100*last)
    			// Be sure to run at least one more than last time.
    			n = max(n, last+1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  5. platforms/core-runtime/build-profile/src/main/java/org/gradle/profile/BuildProfile.java

        /*
         * When loading from configuration cache, the fields that are set on configuration time ain't initialized.
         * After configuration cache hit it's fair to use build start time value for them.
         * */
        private long valueOrBuildStartedTimeIfNotInitialized(long time) {
            return time == NOT_INITIALIZED_VALUE ? buildStartedTime.getStartTime() : time;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:39 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/cacher/cache_watcher_test.go

    	// now, once we know, the processInterval
    	// is waiting add another event that will time out
    	// and start the cleanup process
    	if w.add(&watchCacheEvent{Object: &v1.Pod{}}, time.NewTimer(10*time.Millisecond)) {
    		t.Fatal("expected the add method to fail")
    	}
    	if err := wait.PollUntilContextTimeout(context.Background(), 100*time.Millisecond, 5*time.Second, true, func(_ context.Context) (bool, error) {
    		lock.RLock()
    		defer lock.RUnlock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  7. cmd/admin-server-info.go

    	gcStats := debug.GCStats{
    		// If stats.PauseQuantiles is non-empty, ReadGCStats fills
    		// it with quantiles summarizing the distribution of pause time.
    		// For example, if len(stats.PauseQuantiles) is 5, it will be
    		// filled with the minimum, 25%, 50%, 75%, and maximum pause times.
    		PauseQuantiles: make([]time.Duration, 5),
    	}
    	debug.ReadGCStats(&gcStats)
    	// Truncate GC stats to max 5 entries.
    	if len(gcStats.PauseEnd) > 5 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. pkg/volume/util/operationexecutor/fakegenerator.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package operationexecutor
    
    import (
    	"time"
    
    	"k8s.io/klog/v2"
    
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/api/resource"
    	"k8s.io/apimachinery/pkg/types"
    	csitrans "k8s.io/csi-translation-lib"
    	"k8s.io/kubernetes/pkg/volume"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. pkg/test/framework/components/istio/cleanup.go

    	"istio.io/istio/pkg/test/util/yml"
    )
    
    func (i *istioImpl) Close() error {
    	t0 := time.Now()
    	scopes.Framework.Infof("=== BEGIN: Cleanup Istio [Suite=%s] ===", i.ctx.Settings().TestID)
    
    	// Write time spent for cleanup and deploy to ARTIFACTS/trace.yaml and logs to allow analyzing test times
    	defer func() {
    		delta := time.Since(t0)
    		i.ctx.RecordTraceEvent("istio-cleanup", delta.Seconds())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/dependencies/sub-dependencies.md

    query_or_cookie_extractor(["query_or_cookie_extractor"])
    
    read_query["/items/"]
    
    query_extractor --> query_or_cookie_extractor --> read_query
    ```
    
    ## Using the same dependency multiple times
    
    If one of your dependencies is declared multiple times for the same *path operation*, for example, multiple dependencies have a common sub-dependency, **FastAPI** will know to call that sub-dependency only once per request.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 23:43:13 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top