Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 1,148 for instant (0.05 seconds)

  1. api/maven-api-core/src/test/java/org/apache/maven/api/MonotonicClockTest.java

        void testRapidCalls() {
            Instant[] instants = new Instant[1000];
            for (int i = 0; i < instants.length; i++) {
                instants[i] = MonotonicClock.now();
            }
    
            // Verify monotonic behavior across all measurements
            for (int i = 1; i < instants.length; i++) {
                assertTrue(
                        instants[i].compareTo(instants[i - 1]) >= 0,
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jan 15 06:28:29 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/MonotonicClock.java

         * @return the monotonic clock instance
         */
        public static MonotonicClock get() {
            return CLOCK;
        }
    
        /**
         * Returns the current instant from the monotonic clock.
         * This is a convenience method equivalent to {@code get().instant()}.
         *
         * @return the current instant using monotonic timing
         */
        public static Instant now() {
            return get().instant();
        }
    
        /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jan 15 06:28:29 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/ProtoSession.java

         */
        @Nonnull
        Map<String, String> getEffectiveProperties();
    
        /**
         * Returns the start time of the session.
         *
         * @return the start time as an Instant object, never {@code null}
         */
        @Nonnull
        Instant getStartTime();
    
        /**
         * Gets the directory of the topmost project being built, usually the current directory or the
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Jul 03 14:18:26 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/HeadersJvmTest.kt

      }
    
      @Test fun setInstant() {
        val expected = Instant.ofEpochMilli(1000L)
        val headers =
          Headers
            .Builder()
            .add("Test-Instant", Instant.ofEpochMilli(0L))
            .set("Test-Instant", expected)
            .build()
        assertThat(headers["Test-Instant"]).isEqualTo("Thu, 01 Jan 1970 00:00:01 GMT")
        assertThat(headers.getInstant("Test-Instant")).isEqualTo(expected)
      }
    
      @Test fun addParsing() {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue May 27 14:51:25 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  5. okcurl/src/main/kotlin/okhttp3/curl/logging/OneLineLogFormat.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.curl.logging
    
    import java.io.PrintWriter
    import java.io.StringWriter
    import java.time.Instant
    import java.time.ZoneOffset
    import java.time.format.DateTimeFormatterBuilder
    import java.time.temporal.ChronoField.HOUR_OF_DAY
    import java.time.temporal.ChronoField.MINUTE_OF_HOUR
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 2.1K bytes
    - Click Count (1)
  6. impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingRequest.java

        public void setBuildStartTime(Date buildStartTime) {
            setBuildStartInstant(buildStartTime != null ? Instant.ofEpochMilli(buildStartTime.getTime()) : null);
        }
    
        @Override
        public Instant getBuildStartInstant() {
            return this.buildStartTime;
        }
    
        @Override
        public void setBuildStartInstant(Instant buildStartTime) {
            this.buildStartTime = buildStartTime;
        }
    
        @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jul 23 10:13:56 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  7. docs/metrics/prometheus/grafana/minio-dashboard.json

              },
              "exemplar": true,
              "expr": "topk(1, sum(minio_cluster_capacity_usable_total_bytes{job=~\"$scrape_jobs\"}) by (instance)) - topk(1, sum(minio_cluster_capacity_usable_free_bytes{job=~\"$scrape_jobs\"}) by (instance))",
              "format": "time_series",
              "instant": false,
              "interval": "1m",
              "intervalFactor": 1,
              "legendFormat": "Used",
              "refId": "A",
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Mon Aug 04 01:46:49 GMT 2025
    - 93.1K bytes
    - Click Count (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Headers.kt

        ) = add(name, value.toHttpDateString())
    
        /**
         * Add a header with the specified name and formatted instant. Does validation of header names
         * and value.
         */
        @IgnoreJRERequirement // Only programs that already have Instant will use this.
        fun add(
          name: String,
          value: Instant,
        ) = add(name, Date.from(value))
    
        /**
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue May 27 14:51:25 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java

        @Deprecated
        public Date getStartTime() {
            return new Date(startTime.toEpochMilli());
        }
    
        @Override
        public Instant getStartInstant() {
            return startTime;
        }
    
        @Override
        public MavenExecutionRequest setStartInstant(Instant startTime) {
            this.startTime = startTime;
            return this;
        }
    
        @Override
        public boolean isShowErrors() {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Dec 12 11:02:17 GMT 2024
    - 32.1K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleModuleBuilder.java

     * under the License.
     */
    package org.apache.maven.lifecycle.internal;
    
    import javax.inject.Inject;
    import javax.inject.Named;
    import javax.inject.Singleton;
    
    import java.time.Duration;
    import java.time.Instant;
    import java.util.HashSet;
    import java.util.List;
    
    import org.apache.maven.api.MonotonicClock;
    import org.apache.maven.execution.BuildSuccess;
    import org.apache.maven.execution.ExecutionEvent;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 20:01:00 GMT 2025
    - 5.5K bytes
    - Click Count (0)
Back to Top