- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for TimeFormatting (0.41 sec)
-
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) -
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) -
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) -
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)