- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 38 for nanos (0.02 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava/src/com/google/common/util/concurrent/DirectExecutorService.java
long nanos = unit.toNanos(timeout); synchronized (lock) { while (true) { if (shutdown && runningTasks == 0) { return true; } else if (nanos <= 0) { return false; } else { long now = System.nanoTime(); NANOSECONDS.timedWait(lock, nanos); nanos -= System.nanoTime() - now; // subtract the actual time we waited
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Dec 16 14:23:59 GMT 2025 - 3.4K bytes - Click Count (0) -
guava/src/com/google/common/base/Stopwatch.java
} if (HOURS.convert(nanos, NANOSECONDS) > 0) { return HOURS; } if (MINUTES.convert(nanos, NANOSECONDS) > 0) { return MINUTES; } if (SECONDS.convert(nanos, NANOSECONDS) > 0) { return SECONDS; } if (MILLISECONDS.convert(nanos, NANOSECONDS) > 0) { return MILLISECONDS; } if (MICROSECONDS.convert(nanos, NANOSECONDS) > 0) {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Oct 08 18:55:33 GMT 2025 - 9.2K bytes - Click Count (0) -
mockwebserver/src/main/kotlin/mockwebserver3/internal/MockWebServerSocket.kt
javaNetSocket.shutdownInput() } fun shutdownOutput() { javaNetSocket.shutdownOutput() } /** Sleeps [nanos], throwing if the socket is closed before that period has elapsed. */ fun sleepWhileOpen(nanos: Long) { var ms = nanos / 1_000_000L val ns = nanos - (ms * 1_000_000L) while (ms > 100) { Thread.sleep(100)
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 3.3K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/transfer/AbstractMavenTransferListener.java
message.style(STYLE).append(" (").append(format.format(contentLength)); Duration duration = Duration.between(resource.getStartTime(), MonotonicClock.now()); long nanos = duration.toNanos(); if (nanos > 0) { double seconds = nanos / (double) TimeUnit.SECONDS.toNanos(1); // Convert to fractional seconds double bytesPerSecond = contentLength / seconds; message.append(" at ");
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Apr 22 22:13:51 GMT 2025 - 4.3K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/FakeTicker.java
* * <p>This class is thread-safe. * * @author Jige Yu * @since 10.0 */ @NullMarked @GwtCompatible public class FakeTicker extends Ticker { private final AtomicLong nanos = new AtomicLong(); private volatile long autoIncrementStepNanos; /** Advances the ticker value by {@code time} in {@code timeUnit}. */ @SuppressWarnings("GoodTime") // should accept a java.time.DurationCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Apr 14 15:16:19 GMT 2025 - 4.1K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/TaskRunner.kt
@Throws(InterruptedException::class) @Suppress("PLATFORM_CLASS_MAPPED_TO_KOTLIN") override fun coordinatorWait( taskRunner: TaskRunner, nanos: Long, ) { taskRunner.assertLockHeld() if (nanos > 0) { taskRunner.awaitNanos(nanos) } } override fun <T> decorate(queue: BlockingQueue<T>) = queue override fun execute( taskRunner: TaskRunner,Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Aug 30 11:30:11 GMT 2025 - 10.4K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt
override fun coordinatorWait( taskRunner: TaskRunner, nanos: Long, ) { taskRunner.assertLockHeld() check(waitingCoordinatorTask == null) if (nanos == 0L) return // Yield until notified, interrupted, or the duration elapses. val waitUntil = nanoTime + nanos val self = currentTask waitingCoordinatorTask = selfCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed May 28 23:28:25 GMT 2025 - 11.9K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/CacheBuilder.java
checkArgument(duration >= 0, "duration cannot be negative: %s %s", duration, unit); this.expireAfterWriteNanos = unit.toNanos(duration); return this; } @SuppressWarnings("GoodTime") // nanos internally, should be Duration long getExpireAfterWriteNanos() { return (expireAfterWriteNanos == UNSET_INT) ? DEFAULT_EXPIRATION_NANOS : expireAfterWriteNanos; } /**
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Oct 08 18:55:33 GMT 2025 - 51.9K bytes - Click Count (0) -
guava/src/com/google/common/cache/CacheBuilder.java
checkArgument(duration >= 0, "duration cannot be negative: %s %s", duration, unit); this.expireAfterWriteNanos = unit.toNanos(duration); return this; } @SuppressWarnings("GoodTime") // nanos internally, should be Duration long getExpireAfterWriteNanos() { return (expireAfterWriteNanos == UNSET_INT) ? DEFAULT_EXPIRATION_NANOS : expireAfterWriteNanos; } /**
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Oct 08 18:55:33 GMT 2025 - 51.6K bytes - Click Count (0) -
src/main/java/jcifs/ntlmssp/Type3Message.java
* @param responseKeyNT the NT response key * @param clientChallenge the client challenge bytes * @param clientChallengeInfo additional client challenge information * @param ts * timestamp (nanos since 1601) * @return A <code>byte[]</code> containing the NTLMv2 response. */ public static byte[] getNTLMv2Response(final CIFSContext tc, final Type2Message type2, final byte[] responseKeyNT,Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 32.7K bytes - Click Count (0)