Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for TimeFormatting (0.26 sec)

  1. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/TimeFormatting.java

    import java.math.BigDecimal;
    import java.math.RoundingMode;
    
    public class TimeFormatting {
    
        private static final int MILLIS_PER_SECOND = 1000;
        private static final int MILLIS_PER_MINUTE = 60 * MILLIS_PER_SECOND;
        private static final int MILLIS_PER_HOUR = 60 * MILLIS_PER_MINUTE;
        private static final int MILLIS_PER_DAY = 24 * MILLIS_PER_HOUR;
    
        private TimeFormatting() {
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. platforms/core-runtime/time/src/test/groovy/org/gradle/internal/time/TimeFormattingTest.groovy

        def formatsShortDurations() {
            expect:
            TimeFormatting.formatDurationVeryTerse(0) == '0s'
            TimeFormatting.formatDurationVeryTerse(7) == '0.007s'
            TimeFormatting.formatDurationVeryTerse(1200) == '1.200s'
            TimeFormatting.formatDurationVeryTerse(59202) == '59.202s'
        }
    
        def formatsLongDuration() {
            expect:
            TimeFormatting.formatDurationVeryTerse(60 * 1000) == '1m0.00s'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/store/CachedStoreFactory.java

            LOG.debug(displayName + " cache closed. Cache reads: "
                    + stats.readsFromCache + ", disk reads: "
                    + stats.readsFromDisk + " (avg: " + TimeFormatting.formatDurationVerbose(stats.getDiskReadsAvgMs()) + ", total: " + TimeFormatting.formatDurationVerbose(stats.diskReadsTotalMs.get()) + ")");
        }
    
        private static class Stats {
            private final AtomicLong diskReadsTotalMs = new AtomicLong();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. platforms/core-runtime/build-profile/src/main/java/org/gradle/profile/ProfileReportRenderer.java

     * limitations under the License.
     */
    package org.gradle.profile;
    
    import org.gradle.internal.html.SimpleHtmlWriter;
    import org.gradle.internal.time.TimeFormatting;
    import org.gradle.reporting.HtmlReportRenderer;
    import org.gradle.reporting.ReportRenderer;
    import org.gradle.reporting.TabbedPageRenderer;
    
    import java.io.File;
    import java.io.IOException;
    import java.net.URL;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 01 12:58:53 UTC 2023
    - 14.9K bytes
    - Viewed (0)
  5. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/format/TersePrettyDurationFormatter.java

     * limitations under the License.
     */
    
    package org.gradle.internal.logging.format;
    
    import org.gradle.internal.time.TimeFormatting;
    
    public class TersePrettyDurationFormatter implements DurationFormatter {
    
        @Override
        public String format(long elapsedTimeInMs) {
            return TimeFormatting.formatDurationTerse(elapsedTimeInMs);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 924 bytes
    - Viewed (0)
  6. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/report/TestResultModel.java

    import org.gradle.api.tasks.testing.TestResult;
    import org.gradle.internal.time.TimeFormatting;
    
    public abstract class TestResultModel {
    
        public abstract TestResult.ResultType getResultType();
    
        public abstract long getDuration();
    
        public abstract String getTitle();
    
        public String getFormattedDuration() {
            return TimeFormatting.formatDurationVeryTerse(getDuration());
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  7. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/timeout/impl/DefaultTimeoutHandler.java

    import org.gradle.internal.operations.CurrentBuildOperationRef;
    import org.gradle.internal.time.CountdownTimer;
    import org.gradle.internal.time.Time;
    import org.gradle.internal.time.TimeFormatting;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import javax.annotation.Nullable;
    import java.io.PrintWriter;
    import java.time.Duration;
    import java.util.Arrays;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  8. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/DefaultTimer.java

            this.timeSource = timeSource;
            reset();
        }
    
        @Override
        public String getElapsed() {
            long elapsedMillis = getElapsedMillis();
            return TimeFormatting.formatDurationVerbose(elapsedMillis);
        }
    
        @Override
        public long getElapsedMillis() {
            long elapsedNanos = timeSource.nanoTime() - startTime;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top