Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for startInstant (0.12 sec)

  1. 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();
        }
    
        /**
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jan 15 06:28:29 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. 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,
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jan 15 06:28:29 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  3. 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")
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jul 25 11:08:20 UTC 2025
    - 25.4K bytes
    - Viewed (0)
Back to top