Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,617 for clocks (0.13 sec)

  1. 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)
  2. staging/src/k8s.io/apimachinery/pkg/util/wait/timer.go

    	if t.t == nil {
    		return
    	}
    	t.t.Stop()
    	t.t = nil
    }
    
    var (
    	// RealTimer can be passed to methods that need a clock.Timer.
    	RealTimer = clock.RealClock{}.NewTimer
    )
    
    var (
    	// internalClock is used for test injection of clocks
    	internalClock = clock.RealClock{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 19:14:11 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  3. src/runtime/runtime.go

    const minTimeForTicksPerSecond = 5_000_000*(1-osHasLowResClockInt) + 100_000_000*osHasLowResClockInt
    
    // ticksPerSecond returns a conversion rate between the cputicks clock and the nanotime clock.
    //
    // Note: Clocks are hard. Using this as an actual conversion rate for timestamps is ill-advised
    // and should be avoided when possible. Use only for durations, where a tiny error term isn't going
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/FileAttributesTest.java

            }
        }
    
    
        public void assertCloseTime ( long timeMs ) {
            if ( timeMs - System.currentTimeMillis() > 5 * 60 * 1000L ) {
                assertTrue("Time is not within 30s, check clocks " + new Date(timeMs), false);
            }
        }
    
    
        @Test
        public void testLastModified () throws CIFSException, MalformedURLException, UnknownHostException {
            try ( SmbResource f = createTestFile() ) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  5. src/cmd/internal/obj/x86/evex.go

    }
    
    // inferSuffixError returns non-nil error that describes what could be
    // the cause of suffix parse failure.
    //
    // At the point this function is executed there is already assembly error,
    // so we can burn some clocks to construct good error message.
    //
    // Reported issues:
    //   - duplicated suffixes
    //   - illegal rounding/SAE+broadcast combinations
    //   - unknown suffixes
    //   - misplaced suffix (e.g. wrong Z suffix position)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  6. maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java

                                        + now
                                        + ", lastUpdated = " + lastUpdated + "). Please verify that the clocks of all"
                                        + " deploying machines are reasonably synchronized.");
                        versioning.setLastUpdated(now);
                        changed = true;
                    }
                }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  7. src/time/time.go

    // no leap seconds.
    //
    // # Monotonic Clocks
    //
    // Operating systems provide both a “wall clock,” which is subject to
    // changes for clock synchronization, and a “monotonic clock,” which is
    // not. The general rule is that the wall clock is for telling time and
    // the monotonic clock is for measuring time. Rather than split the API,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  8. src/time/time_test.go

    	{"ISOWeek", func(t1, t2 Time) bool {
    		a1, b1 := t1.ISOWeek()
    		a2, b2 := t2.ISOWeek()
    		return a1 == a2 && b1 == b2
    	}},
    	{"Clock", func(t1, t2 Time) bool {
    		a1, b1, c1 := t1.Clock()
    		a2, b2, c2 := t2.Clock()
    		return a1 == a2 && b1 == b2 && c1 == c2
    	}},
    	{"Hour", func(t1, t2 Time) bool { return t1.Hour() == t2.Hour() }},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  9. src/runtime/metrics_test.go

    // to abstract over the relationship of two Lock calls or an RLock
    // and a Lock call.
    type locker2 interface {
    	Lock1()
    	Unlock1()
    	Lock2()
    	Unlock2()
    }
    
    type mutex struct {
    	mu sync.Mutex
    }
    
    func (m *mutex) Lock1()   { m.mu.Lock() }
    func (m *mutex) Unlock1() { m.mu.Unlock() }
    func (m *mutex) Lock2()   { m.mu.Lock() }
    func (m *mutex) Unlock2() { m.mu.Unlock() }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  10. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/streams/DefaultValueStoreTest.groovy

        }
    
        def "can write and then read a block multiple times"() {
            expect:
            def block = write("test")
            read(block) == "test"
            read(block) == "test"
            read(block) == "test"
        }
    
        def "can write multiple blocks and read in any order"() {
            expect:
            def block1 = write("test 1")
            def block2 = write("test 2")
            def block3 = write("test 3")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 4.9K bytes
    - Viewed (0)
Back to top