- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for startInstant (0.07 seconds)
-
api/maven-api-core/src/main/java/org/apache/maven/api/MonotonicClock.java
private final long startNanos; private final Instant startInstant; /** * Private constructor to enforce singleton pattern. * Initializes the clock with the current system time and nanoTime. */ private MonotonicClock() { this.startNanos = System.nanoTime(); this.startInstant = Clock.systemUTC().instant(); } /**Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jan 15 06:28:29 GMT 2025 - 5.6K bytes - Click Count (0) -
api/maven-api-core/src/test/java/org/apache/maven/api/MonotonicClockTest.java
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( Math.abs(elapsed.toMillis() - calculated.toMillis()) <= 1,
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jan 15 06:28:29 GMT 2025 - 5.8K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/Constants.java
/** * User property used to store the build timestamp. * * @since 4.0.0 */ @Config(type = "java.time.Instant") public static final String MAVEN_START_INSTANT = "maven.startInstant"; /** * Max number of problems for each severity level retained by the model builder. * * @since 4.0.0 */ @Config(type = "java.lang.Integer", defaultValue = "100")Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Dec 16 13:41:14 GMT 2025 - 28.7K bytes - Click Count (0)