Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,544 for units (0.4 sec)

  1. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/measure/Duration.java

    import java.math.BigDecimal;
    
    public class Duration {
        public static final Units<Duration> MILLI_SECONDS = Units.base(Duration.class, "ms");
        public static final Units<Duration> SECONDS = MILLI_SECONDS.times(1000, "s");
        public static final Units<Duration> MINUTES = SECONDS.times(60, "m");
        public static final Units<Duration> HOURS = MINUTES.times(60, "h");
    
        public static Amount<Duration> millis(long millis) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/internal/measurement/measurement.go

    // sniffUnit simpifies the input alias and returns the unit associated with the
    // specified alias. It returns nil if the unit with such alias is not found.
    func (ut UnitType) sniffUnit(unit string) *Unit {
    	unit = strings.ToLower(unit)
    	if len(unit) > 2 {
    		unit = strings.TrimSuffix(unit, "s")
    	}
    	return ut.findByAlias(unit)
    }
    
    // autoScale takes in the value with units of the base unit and returns
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/profile/profile.go

    				if unit == "" {
    					continue
    				}
    				if wantUnit, ok := numLabelUnits[k]; !ok {
    					numLabelUnits[k] = unit
    				} else if wantUnit != unit {
    					if v, ok := ignoredUnits[k]; ok {
    						v[unit] = true
    					} else {
    						ignoredUnits[k] = map[string]bool{unit: true}
    					}
    				}
    			}
    		}
    	}
    	// Infer units for keys without any units associated with
    	// numeric tag values.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  4. subprojects/core-api/src/main/java/org/gradle/api/artifacts/ResolutionStrategy.java

         * Units are resolved by calling the {@code valueOf(String)} method of {@link java.util.concurrent.TimeUnit} with the upper-cased string value.</p>
         *
         * @param value The number of time units
         * @param units The units
         * @since 1.0-milestone-6
         */
        void cacheChangingModulesFor(int value, String units);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 17 13:05:50 UTC 2022
    - 16K bytes
    - Viewed (0)
  5. pkg/kubelet/stats/helper_test.go

    	spec := []cadvisorapiv1.MetricSpec{
    		{
    			Name:   "qos",
    			Type:   cadvisorapiv1.MetricGauge,
    			Format: cadvisorapiv1.IntType,
    			Units:  "per second",
    		},
    		{
    			Name:   "cpuLoad",
    			Type:   cadvisorapiv1.MetricCumulative,
    			Format: cadvisorapiv1.FloatType,
    			Units:  "count",
    		},
    	}
    	timestamp1 := time.Now()
    	timestamp2 := time.Now().Add(time.Minute)
    	metrics := map[string][]cadvisorapiv1.MetricVal{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 22 16:23:28 UTC 2020
    - 2.3K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolutionstrategy/DefaultCachePolicy.java

            keepChangingModulesFor = units.toMillis(value);
            eachModule(moduleResolutionControl -> {
                if (moduleResolutionControl.isChanging()) {
                    moduleResolutionControl.cacheFor(value, units);
                }
            });
            eachArtifact(artifactResolutionControl -> {
                if (artifactResolutionControl.belongsToChangingModule()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 30 22:04:14 UTC 2023
    - 14.9K bytes
    - Viewed (0)
  7. test/fixedbugs/issue17918.go

    import (
    	"fmt"
    	"time"
    )
    
    var (
    	units = []struct {
    		divisor time.Duration
    		unit    rune
    	}{
    		{1000000, 's'},
    		{60, 'm'},
    		{60, 'h'},
    		{24, 'd'},
    		{7, 'w'},
    	}
    )
    
    func foobar(d time.Duration) string {
    	d /= time.Microsecond
    	unit := 'u'
    
    	for _, f := range units {
    		if d%f.divisor != 0 {
    			break
    		}
    		d /= f.divisor
    		unit = f.unit
    	}
    	return fmt.Sprintf("%d%c", d, unit)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 16:31:27 UTC 2016
    - 619 bytes
    - Viewed (0)
  8. src/internal/coverage/decodemeta/decode.go

    		return err
    	}
    
    	// Preamble containing number of units, file, and function.
    	numUnits := uint32(d.r.ReadULEB128())
    	fnameidx := uint32(d.r.ReadULEB128())
    	fileidx := uint32(d.r.ReadULEB128())
    
    	f.Srcfile = d.strtab.Get(fileidx)
    	f.Funcname = d.strtab.Get(fnameidx)
    
    	// Now the units
    	f.Units = f.Units[:0]
    	if cap(f.Units) < int(numUnits) {
    		f.Units = make([]coverage.CoverableUnit, 0, numUnits)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:36:28 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  9. src/internal/coverage/test/roundtrip_test.go

    		}
    	}
    }
    
    func createFuncs(i int) []coverage.FuncDesc {
    	res := []coverage.FuncDesc{}
    	lc := uint32(1)
    	for fi := 0; fi < i+1; fi++ {
    		units := []coverage.CoverableUnit{}
    		for ui := 0; ui < (fi+1)*(i+1); ui++ {
    			units = append(units,
    				coverage.CoverableUnit{StLine: lc, StCol: lc + 1,
    					EnLine: lc + 2, EnCol: lc + 3, NxStmts: lc + 4,
    				})
    			lc += 5
    		}
    		f := coverage.FuncDesc{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 21:42:05 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/cache/ResolutionControl.java

        B getCachedResult();
    
        /**
         * States that the cached value should be used if it is no older than the specified duration.
         * @param value The number of units
         * @param units The time units
         */
        void cacheFor(int value, TimeUnit units);
    
        /**
         * States that the cached value should be used regardless of age.
         * If not cachedResult is available, resolution should fail.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top