- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for elapsedTime (0.09 sec)
-
api/maven-api-core/src/main/java/org/apache/maven/api/MonotonicClock.java
} /** * Returns the elapsed time since clock initialization. * This is a convenience method equivalent to {@code get().elapsedTime()}. * * @return the duration since clock initialization */ public static Duration elapsed() { return get().elapsedTime(); } /** * Returns a monotonically increasing instant. * <p>
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Wed Jan 15 06:28:29 UTC 2025 - 5.6K 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 Sep 07 03:35:12 UTC 2025 - Last Modified: Wed Jan 15 06:28:29 UTC 2025 - 5.8K bytes - Viewed (0)