- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 190 for nanotime (0.33 sec)
-
platforms/core-runtime/time/src/main/java/org/gradle/internal/time/MonotonicClock.java
} MonotonicClock(TimeSource timeSource, long syncIntervalMillis) { long nanoTime = timeSource.nanoTime(); long currentTimeMillis = timeSource.currentTimeMillis(); this.timeSource = timeSource; this.syncIntervalMillis = syncIntervalMillis; this.syncNanosRef = new AtomicLong(nanoTime); this.syncMillisRef = new AtomicLong(currentTimeMillis);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 20:20:17 UTC 2024 - 5K bytes - Viewed (0) -
src/runtime/os_linux_mips64x.go
func archauxv(tag, val uintptr) { switch tag { case _AT_HWCAP: cpu.HWCap = uint(val) } } func osArchInit() {} //go:nosplit func cputicks() int64 { // nanotime() is a poor approximation of CPU ticks that is enough for the profiler. return nanotime() } const ( _SS_DISABLE = 2 _NSIG = 129 _SIG_BLOCK = 1 _SIG_UNBLOCK = 2 _SIG_SETMASK = 3 ) type sigset [2]uint64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 996 bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/WaitAtEndOfBuildFixture.groovy
if (gradleVersion < SUPPORTS_BUILD_SERVICES) { return """ def startAt = System.nanoTime() gradle.buildFinished { long sinceStart = (System.nanoTime() - startAt) / 1000000L if (sinceStart > 0 && sinceStart < $minimumBuildTimeMillis) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 5.7K bytes - Viewed (0) -
platforms/core-runtime/time/src/main/java/org/gradle/internal/time/DefaultTimer.java
} @Override public long getElapsedMillis() { long elapsedNanos = timeSource.nanoTime() - startTime; long elapsedMillis = TimeUnit.NANOSECONDS.toMillis(elapsedNanos); // System.nanoTime() can go backwards under some circumstances. // http://bugs.java.com/bugdatabase/view_bug.do?bug_id=6458294
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 20:20:17 UTC 2024 - 1.6K bytes - Viewed (0) -
src/runtime/tracetime.go
// Trace time and clock. package runtime import ( "internal/goarch" _ "unsafe" ) // Timestamps in trace are produced through either nanotime or cputicks // and divided by traceTimeDiv. nanotime is used everywhere except on // platforms where osHasLowResClock is true, because the system clock // isn't granular enough to get useful information out of a trace in // many cases. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:17:41 UTC 2024 - 3.3K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/RecordingConnectionListener.kt
) { logEvent(ConnectionEvent.ConnectEnd(System.nanoTime(), connection, route, call)) } override fun connectionClosed(connection: Connection) = logEvent(ConnectionEvent.ConnectionClosed(System.nanoTime(), connection)) override fun connectionAcquired( connection: Connection, call: Call, ) { logEvent(ConnectionEvent.ConnectionAcquired(System.nanoTime(), connection, call)) }
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.6K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskTimeoutIntegrationTest.groovy
def checkpoint1() { def startAt = System.nanoTime() while (System.nanoTime() - startAt < 1_000_000_000) {} } @groovy.transform.CompileStatic def checkpoint2() { def startAt = System.nanoTime() while (System.nanoTime() - startAt < 1_000_000_000) {} } @groovy.transform.CompileStatic
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 03 15:21:23 UTC 2024 - 12.6K bytes - Viewed (0) -
platforms/core-runtime/time/src/test/groovy/org/gradle/internal/time/MonotonicClockTest.groovy
public static final int SYNC_INTERVAL = 1000 private TimeSource timeSource = Mock(TimeSource) { 1 * currentTimeMillis() >> START_MILLIS 1 * nanoTime() >> START_NANOS } private Clock clock = new MonotonicClock(timeSource, SYNC_INTERVAL) def "prevents time from going backwards"() { when: setNanos 0 then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 20:20:17 UTC 2024 - 2.8K bytes - Viewed (0) -
guava/src/com/google/common/base/Ticker.java
* * @since 10.0 */ public static Ticker systemTicker() { return SYSTEM_TICKER; } private static final Ticker SYSTEM_TICKER = new Ticker() { @Override @SuppressWarnings("GoodTime") // reading system time without TimeSource public long read() { return System.nanoTime(); } };
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue May 23 23:27:53 UTC 2023 - 1.8K bytes - Viewed (0) -
guava/src/com/google/common/base/Stopwatch.java
* (by default) uses {@link System#nanoTime}, it is unaffected by these changes. * * <p>Use this class instead of direct calls to {@link System#nanoTime} for two reasons: * * <ul> * <li>The raw {@code long} values returned by {@code nanoTime} are meaningless and unsafe to use * in any other way than how {@code Stopwatch} uses them.
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 23 15:09:35 UTC 2023 - 9.2K bytes - Viewed (0)