Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 492 for CLOCK (0.05 sec)

  1. pkg/kubelet/token/token_manager_test.go

    		},
    	}
    	for _, c := range cases {
    		t.Run(c.name, func(t *testing.T) {
    			clock := testingclock.NewFakeClock(time.Time{}.Add(24 * time.Hour))
    			mgr := NewManager(nil)
    			mgr.clock = clock
    
    			mgr.set("key", &authenticationv1.TokenRequest{
    				Status: authenticationv1.TokenRequestStatus{
    					ExpirationTimestamp: metav1.Time{Time: mgr.clock.Now().Add(c.relativeExp)},
    				},
    			})
    			mgr.cleanup()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 04 00:16:47 UTC 2022
    - 16.2K bytes
    - Viewed (0)
  2. platforms/core-runtime/time/src/test/groovy/org/gradle/internal/time/MonotonicClockTest.groovy

            1 * nanoTime() >> START_NANOS
        }
    
        private Clock clock = new MonotonicClock(timeSource, SYNC_INTERVAL)
    
        def "prevents time from going backwards"() {
            when:
            setNanos 0
    
            then:
            clock.currentTime == START_MILLIS + 0
    
            when:
            setNanos 10
    
            then:
            clock.currentTime == START_MILLIS + 10
    
            when:
            setNanos 8
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/main/java/org/gradle/tooling/internal/provider/LauncherServices.java

                if (!requestMetaData.isInteractive()) {
                    return new NonInteractiveUserInputHandler();
                }
    
                return new DefaultUserInputHandler(outputEventListenerManager.getBroadcaster(), clock, inputReader);
            }
    
            @Provides
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 13:01:53 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/junit/JUnitTestEventAdapter.java

        private final Clock clock;
        private final Object lock = new Object();
        private final Map<Description, TestDescriptorInternal> executing = new HashMap<Description, TestDescriptorInternal>();
        private final Set<Description> assumptionFailed = new HashSet<Description>();
    
        public JUnitTestEventAdapter(TestResultProcessor resultProcessor, Clock clock, IdGenerator<?> idGenerator) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  5. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/MonotonicClock.java

     * in between syncs with the system wall clock.
     * When issuing the first timestamp after the sync interval has expired,
     * The system wall clock will be read, and the current time set to the max of wall clock time or the most recently issued timestamp.
     * All other timestamps are calculated as the wall clock time at last sync + elapsed time since.
     * <p>
     * This clock deals relatively well when the system wall clock shift is adjusted by small amounts.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/internal/tasks/testing/detection/DefaultTestExecuter.java

        private final ActorFactory actorFactory;
        private final ForkedTestClasspathFactory testClasspathFactory;
        private final WorkerLeaseService workerLeaseService;
        private final int maxWorkerCount;
        private final Clock clock;
        private final DocumentationRegistry documentationRegistry;
        private final DefaultTestFilter testFilter;
        private TestClassProcessor processor;
    
        public DefaultTestExecuter(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  7. platforms/core-runtime/build-profile/src/main/java/org/gradle/profile/ProfileEventAdapter.java

        public ProfileEventAdapter(BuildProfile buildProfile, BuildStartedTime buildStartedTime, Clock clock) {
            this.buildProfile = buildProfile;
            this.buildStartedTime = buildStartedTime;
            this.clock = clock;
        }
    
        // BuildListener
        @Override
        public void beforeSettings(Settings settings) {
            long now = clock.getCurrentTime();
            buildProfile.setBuildStarted(now);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:39 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/Time.java

         */
        public static Clock clock() {
            return CLOCK;
        }
    
        /**
         * Replacement for System.currentTimeMillis(), based on {@link #clock()}.
         */
        public static long currentTimeMillis() {
            return CLOCK.getCurrentTime();
        }
    
        /**
         * Measures elapsed time.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. platforms/enterprise/enterprise/src/main/java/org/gradle/internal/enterprise/impl/legacy/DefaultBuildScanClock.java

    import org.gradle.internal.time.Clock;
    
    import javax.inject.Inject;
    
    public class DefaultBuildScanClock implements BuildScanClock {
    
        private final Clock clock;
    
        @Inject
        public DefaultBuildScanClock(Clock clock) {
            this.clock = clock;
        }
    
        @Override
        public long getCurrentTime() {
            return clock.getCurrentTime();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 15 17:58:47 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/slf4j/OutputEventListenerBackedLogger.java

    import org.gradle.internal.time.Clock;
    
    public class OutputEventListenerBackedLogger extends BuildOperationAwareLogger {
    
        private final String name;
        private final OutputEventListenerBackedLoggerContext context;
        private final Clock clock;
    
        public OutputEventListenerBackedLogger(String name, OutputEventListenerBackedLoggerContext context, Clock clock) {
            this.name = name;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top