- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 83 for nanotime (0.36 sec)
-
okhttp/src/test/java/okhttp3/RecordingCallback.kt
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.1K bytes - Viewed (0) -
platforms/core-runtime/time/src/main/java/org/gradle/internal/time/Time.java
return CLOCK.getCurrentTime(); } /** * Measures elapsed time. * * Timers use System.nanoTime() to measure elapsed time, * and are therefore not synchronized with {@link #clock()} or the system wall clock. * * System.nanoTime() does not consider time elapsed while the system is in hibernation.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 20:20:17 UTC 2024 - 2.2K bytes - Viewed (0) -
src/runtime/os_linux_arm.go
case _AT_PLATFORM: cpu.Platform = gostringnocopy((*byte)(unsafe.Pointer(val))) } } func osArchInit() {} //go:nosplit func cputicks() int64 { // nanotime() is a poor approximation of CPU ticks that is enough for the profiler. return nanotime()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 1.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/InterruptionUtil.java
long end = System.nanoTime() + remainingNanos; while (true) { try { // TimeUnit.timedJoin() treats negative timeouts just like zero. NANOSECONDS.timedJoin(thread, remainingNanos); return; } catch (InterruptedException e) { interrupted = true; remainingNanos = end - System.nanoTime(); } } } finally {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4.4K bytes - Viewed (0) -
android/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) -
platforms/core-runtime/time/src/test/groovy/org/gradle/internal/time/DefaultTimerTest.groovy
package org.gradle.internal.time import spock.lang.Specification import java.util.concurrent.TimeUnit class DefaultTimerTest extends Specification { def timeSource = Mock(TimeSource) { 1 * nanoTime() >> 0 } def timer = new DefaultTimer(timeSource) def testOnlySecondsTwoDigits() throws Exception { when: setTime(51243) then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 20:20:17 UTC 2024 - 2.2K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/DirectExecutorService.java
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed May 15 10:40:05 UTC 2024 - 3.5K bytes - Viewed (0) -
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt
class LoggingEventListener private constructor( private val logger: HttpLoggingInterceptor.Logger, ) : EventListener() { private var startNs: Long = 0 override fun callStart(call: Call) { startNs = System.nanoTime() logWithTime("callStart: ${call.request()}") } override fun proxySelectStart( call: Call, url: HttpUrl, ) { logWithTime("proxySelectStart: $url") }
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Apr 01 11:07:32 UTC 2024 - 5.4K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/DirectExecutorService.java
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed May 15 10:40:05 UTC 2024 - 3.5K bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/Instants.groovy
} throw new IllegalStateException("Timeout waiting for instant '$name' to be defined by another thread.") } } private long monotonicClockMillis() { System.nanoTime() / 1000000L } def getProperty(String name) { synchronized (lock) { if (Thread.currentThread() != mainThread) { return now(name) } else {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 3.7K bytes - Viewed (0)