- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 128 for nanotime (0.77 sec)
-
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) -
android/guava-testlib/src/com/google/common/testing/GcFinalization.java
@SuppressWarnings("removal") // b/260137033 public static void awaitDone(Future<?> future) { if (future.isDone()) { return; } long timeoutSeconds = timeoutSeconds(); long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); do { System.runFinalization(); if (future.isDone()) { return; } System.gc(); try { future.get(1L, SECONDS);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 17:40:56 UTC 2024 - 11.6K bytes - Viewed (0) -
maven-model-builder/src/test/java/org/apache/maven/model/building/GraphTest.java
} Collections.shuffle(data); long t0 = System.nanoTime(); Graph g = new Graph(); data.parallelStream().forEach(s -> { try { g.addEdge(s[0], s[1]); } catch (Exception e) { throw new RuntimeException(e); } }); long t1 = System.nanoTime(); }
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Jan 15 16:49:26 UTC 2024 - 2.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/concurrent/TaskRunnerRealBackendTest.kt
} @Test fun test() { val t1 = System.nanoTime() / 1e6 val delays = mutableListOf(TimeUnit.MILLISECONDS.toNanos(1000), -1L) queue.schedule("task", TimeUnit.MILLISECONDS.toNanos(750)) { log.put("runOnce delays.size=${delays.size}") return@schedule delays.removeAt(0) } assertThat(log.take()).isEqualTo("runOnce delays.size=2") val t2 = System.nanoTime() / 1e6 - t1
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskLogger.kt
if (loggingEnabled) { startNs = queue.taskRunner.backend.nanoTime() log(task, queue, "starting") } var completedNormally = false try { val result = block() completedNormally = true return result } finally { if (loggingEnabled) { val elapsedNs = queue.taskRunner.backend.nanoTime() - startNs if (completedNormally) {
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.6K bytes - Viewed (0) -
src/runtime/timestub.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Declarations for operating systems implementing time.now // indirectly, in terms of walltime and nanotime assembly. //go:build !faketime && !windows && !(linux && amd64) package runtime import _ "unsafe" // for go:linkname // time_now should be an internal detail,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 889 bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/TestLogger.groovy
* limitations under the License. */ package org.gradle.test.fixtures.concurrent class TestLogger { private final long startTime = System.nanoTime() void log(def msg) { println "* [${(long) ((System.nanoTime() - startTime) / 1000000L)}ms] [${Thread.currentThread().name}] ${msg}" }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 886 bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/interval/impl/HostIntervalControllerTest.java
Registered: Wed Jun 12 15:17:51 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 3.2K bytes - Viewed (0)