Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,368 for units (0.23 sec)

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

                }
                return -1;
            }
    
            public void add(ScaledUnits<Q> units) {
                this.units.add(units);
                Collections.sort(this.units);
            }
        }
    
        private static class ScaledUnits<Q> extends Units<Q> {
            private final BaseUnits<Q> baseUnits;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. pkg/monitoring/units.go

    // limitations under the License.
    
    package monitoring
    
    // Unit encodes the standard name for describing the quantity
    // measured by a Metric (if applicable).
    type Unit string
    
    // Predefined units for use with the monitoring package.
    const (
    	None         Unit = "1"
    	Bytes        Unit = "By"
    	Seconds      Unit = "s"
    	Milliseconds Unit = "ms"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 901 bytes
    - Viewed (0)
  3. testing/internal-performance-testing/src/test/groovy/org/gradle/performance/measure/AmountTest.groovy

        }
    
        def "can add amounts with different units of same quantity"() {
            def sum = Amount.valueOf(valueA, unitsA) + Amount.valueOf(valueB, unitsB)
            expect:
            sum == Amount.valueOf(valueC, unitsC)
            sum.toString() == Amount.valueOf(valueC, unitsC).toString()
    
            where:
            valueA | unitsA        | valueB | unitsB        | valueC  | unitsC
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/measure/Amount.java

            }
            int diff = units.compareTo(other.units);
            if (diff == 0) {
                return new Amount<>(value.add(other.value), units);
            }
            if (diff < 0) {
                return new Amount<>(value.add(other.units.scaleTo(other.value, units)), units);
            }
            return new Amount<>(units.scaleTo(value, other.units).add(other.value), other.units);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. testing/internal-performance-testing/src/test/groovy/org/gradle/performance/measure/UnitsTest.groovy

    class UnitsTest extends Specification {
        def "can compare units of same quantity"() {
            def base = Units.base(Void.class, "base")
            def units1 = base.times(12, "units1")
            def units2 = base.times(33, "units2")
    
            expect:
            base < units1
            base < units2
            units1 > base
            units1 < units2
            units2 > base
            units2 > units1
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  6. src/internal/coverage/cformat/format.go

    		pkgs = append(pkgs, importpath)
    	}
    	slices.Sort(pkgs)
    	for _, importpath := range pkgs {
    		p := fm.pm[importpath]
    		units := make([]extcu, 0, len(p.unitTable))
    		for u := range p.unitTable {
    			units = append(units, u)
    		}
    		p.sortUnits(units)
    		for _, u := range units {
    			count := p.unitTable[u]
    			file := p.funcs[u.fnfid].file
    			if _, err := fmt.Fprintf(w, "%s:%d.%d,%d.%d %d %d\n",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  7. platforms/core-runtime/build-operations/src/main/java/org/gradle/internal/operations/OperationProgressDetails.java

     */
    public class OperationProgressDetails {
        private final long progress;
        private final long total;
        private final String units;
    
        public OperationProgressDetails(long progress, long total, String units) {
            this.progress = progress;
            this.total = total;
            this.units = units;
        }
    
        public long getProgress() {
            return progress;
        }
    
        public long getTotal() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 14:19:43 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  8. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/measure/DataAmount.java

    import java.math.BigDecimal;
    
    public class DataAmount {
        public static final Units<DataAmount> BYTES = Units.base(DataAmount.class, "B");
        public static final Units<DataAmount> KILO_BYTES = BYTES.times(1024, "kB");
        public static final Units<DataAmount> MEGA_BYTES = KILO_BYTES.times(1024, "MB");
        public static final Units<DataAmount> GIGA_BYTES = MEGA_BYTES.times(1024, "GB");
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top