- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 397 for Duration (0.04 sec)
-
api/maven-api-core/src/main/java/org/apache/maven/api/MonotonicClock.java
* The returned duration is calculated using {@link System#nanoTime()} * to ensure monotonic behavior. This duration represents the exact time * span between clock initialization and the current instant. * * @return the duration since clock initialization * @see #startInstant() * @see #instant() */ public Duration elapsedTime() { long elapsedNanos = System.nanoTime() - startNanos;Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jan 15 06:28:29 UTC 2025 - 5.6K bytes - Viewed (0) -
guava/src/com/google/common/base/Suppliers.java
Supplier<T> delegate, Duration duration) { checkNotNull(delegate); // The alternative of `duration.compareTo(Duration.ZERO) > 0` causes J2ObjC trouble. checkArgument( !duration.isNegative() && !duration.isZero(), "duration (%s) must be > 0", duration); return new ExpiringMemoizingSupplier<>(delegate, toNanosSaturated(duration)); } @VisibleForTesting
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 16.5K bytes - Viewed (0) -
internal/config/batch/help.go
config.HelpKV{ Key: ReplicationWorkersWait, Description: `maximum sleep duration between objects to slow down batch replication operation` + defaultHelpPostfix(ReplicationWorkersWait), Optional: true, Type: "duration", }, config.HelpKV{ Key: KeyRotationWorkersWait, Description: `maximum sleep duration between objects to slow down batch keyrotation operation` + defaultHelpPostfix(KeyRotationWorkersWait),Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sat Dec 02 10:51:33 UTC 2023 - 1.8K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/execution/BuildSummary.java
*/ private final MavenProject project; /** * The build time of the project in milliseconds. */ private final Duration wallTime; /** * The total amount of time spent for to run mojos in milliseconds. */ private final Duration execTime; /** * Creates a new build summary for the specified project. *Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Dec 12 11:02:17 UTC 2024 - 3K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java
*/ @CanIgnoreReturnValue @J2ktIncompatible @GwtIncompatible // java.time.Duration @ParametricNullness @IgnoreJRERequirement // Users will use this only if they're already using Duration. public static <V extends @Nullable Object> V getUninterruptibly( Future<V> future, Duration timeout) throws ExecutionException, TimeoutException {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19.8K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/CacheBuilder.java
@SuppressWarnings("GoodTime") // Duration decomposition @IgnoreJRERequirement // No more dangerous than wherever the caller got the Duration from private static long toNanosSaturated(Duration duration) { // Using a try/catch seems lazy, but the catch block will rarely get invoked (except for // durations longer than approximately +/- 292 years). try { return duration.toNanos();Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 08 18:55:33 UTC 2025 - 51.9K bytes - Viewed (0) -
cmd/os-instrumented.go
func (o *osMetrics) time(s osMetric) func() { startTime := time.Now() return func() { duration := time.Since(startTime) atomic.AddUint64(&o.operations[s], 1) o.latency[s].add(duration) } } // incTime will increment time on metric s with a specific duration. func (o *osMetrics) incTime(s osMetric, d time.Duration) { atomic.AddUint64(&o.operations[s], 1) o.latency[s].add(d) }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 6.2K bytes - Viewed (0) -
cmd/data-scanner-metric.go
startTime := time.Now() return func(custom map[string]string) { duration := time.Since(startTime) atomic.AddUint64(&p.operations[s], 1) if s < scannerMetricLastRealtime { p.latency[s].add(duration) } if s > scannerMetricStartTrace && globalTrace.NumSubscribers(madmin.TraceScanner) > 0 { globalTrace.Publish(scannerTrace(s, startTime, duration, strings.Join(paths, " "), custom)) } } }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Oct 01 06:06:01 UTC 2025 - 9.4K bytes - Viewed (0) -
api/maven-api-core/src/test/java/org/apache/maven/api/MonotonicClockTest.java
void testElapsedTimeConsistency() { MonotonicClock clock = MonotonicClock.get(); Instant now = clock.instant(); Duration elapsed = clock.elapsedTime(); Duration calculated = Duration.between(clock.startInstant(), now); // Allow for small timing differences (1ms) due to execution time between measurements assertTrue(
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jan 15 06:28:29 UTC 2025 - 5.8K bytes - Viewed (0) -
internal/config/heal/heal.go
Bitrot string `json:"bitrotscan"` // maximum sleep duration between objects to slow down heal operation. Sleep time.Duration `json:"sleep"` IOCount int `json:"iocount"` DriveWorkers int `json:"drive_workers"` // Cached value from Bitrot field cache struct { // -1: bitrot enabled, 0: bitrot disabled, > 0: bitrot cycle bitrotCycle time.Duration } }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Nov 04 19:06:02 UTC 2024 - 4.9K bytes - Viewed (0)