Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,544 for units (0.04 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. src/debug/dwarf/unit.go

    			break
    		}
    		b.skip(int(len))
    		if len > 0 {
    			nunit++
    		}
    	}
    	if b.err != nil {
    		return nil, b.err
    	}
    
    	// Again, this time writing them down.
    	b = makeBuf(d, unknownFormat{}, "info", 0, d.info)
    	units := make([]unit, nunit)
    	for i := range units {
    		u := &units[i]
    		u.base = b.off
    		var n Offset
    		if b.err != nil {
    			return nil, b.err
    		}
    		for n == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 21 17:14:08 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. subprojects/build-events/src/main/java/org/gradle/internal/build/event/types/DefaultStatusEvent.java

        private final long progress;
        private final long total;
        private final String units;
    
        public DefaultStatusEvent(long eventTime, DefaultFileDownloadDescriptor descriptor, long progress, long total, String units) {
            super(eventTime, descriptor);
            this.progress = progress;
            this.total = total;
            this.units = units;
        }
    
        @Override
        public String getDisplayName() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 21 23:09:50 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  10. 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)
Back to top