- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 59 for nanos (2.36 sec)
-
android/guava-testlib/src/com/google/common/testing/FakeTicker.java
* * <p>This class is thread-safe. * * @author Jige Yu * @since 10.0 */ @ElementTypesAreNonnullByDefault @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.Duration
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Mar 13 18:17:09 GMT 2024 - 4.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/Encdec.java
public static final int TIME_1970_SEC_32LE = 2; public static final int TIME_1904_SEC_32BE = 3; public static final int TIME_1904_SEC_32LE = 4; public static final int TIME_1601_NANOS_64LE = 5; public static final int TIME_1601_NANOS_64BE = 6; public static final int TIME_1970_MILLIS_64BE = 7; public static final int TIME_1970_MILLIS_64LE = 8; /* Encode integers */
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Fri Mar 22 20:39:42 GMT 2019 - 10.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt
@Suppress("PLATFORM_CLASS_MAPPED_TO_KOTLIN") override fun coordinatorWait( taskRunner: TaskRunner, nanos: Long, ) { taskRunner.lock.assertHeld() if (nanos > 0) { taskRunner.condition.awaitNanos(nanos) } } override fun <T> decorate(queue: BlockingQueue<T>) = queue override fun execute( taskRunner: TaskRunner,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 29 00:33:04 GMT 2024 - 10.6K bytes - Viewed (0) -
guava/src/com/google/common/cache/CacheBuilder.java
@SuppressWarnings("GoodTime") // should be a java.time.Duration private static final int DEFAULT_EXPIRATION_NANOS = 0; @SuppressWarnings("GoodTime") // should be a java.time.Duration private static final int DEFAULT_REFRESH_NANOS = 0; static final Supplier<? extends StatsCounter> NULL_STATS_COUNTER = Suppliers.ofInstance( new StatsCounter() {
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 51.3K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt
override fun coordinatorWait( taskRunner: TaskRunner, nanos: Long, ) { taskRunner.assertThreadHoldsLock() check(waitingCoordinatorTask == null) if (nanos == 0L) return // Yield until notified, interrupted, or the duration elapses. val waitUntil = nanoTime + nanos val self = currentTask waitingCoordinatorTask = self
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 29 00:33:04 GMT 2024 - 12.6K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/CacheBuilder.java
@SuppressWarnings("GoodTime") // should be a java.time.Duration private static final int DEFAULT_EXPIRATION_NANOS = 0; @SuppressWarnings("GoodTime") // should be a java.time.Duration private static final int DEFAULT_REFRESH_NANOS = 0; static final Supplier<? extends StatsCounter> NULL_STATS_COUNTER = Suppliers.ofInstance( new StatsCounter() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 44.8K bytes - Viewed (0) -
cmd/metrics-v3-system-network.go
"github.com/minio/minio/internal/rest" ) const ( internodeErrorsTotal MetricName = "errors_total" internodeDialErrorsTotal MetricName = "dial_errors_total" internodeDialAvgTimeNanos MetricName = "dial_avg_time_nanos" internodeSentBytesTotal MetricName = "sent_bytes_total" internodeRecvBytesTotal MetricName = "recv_bytes_total" ) var ( internodeErrorsTotalMD = NewCounterMD(internodeErrorsTotal,
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sun Mar 10 09:15:15 GMT 2024 - 2.4K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/FakeTickerTest.java
public void testAutoIncrementStep_returnsSameInstance() { FakeTicker ticker = new FakeTicker(); assertSame(ticker, ticker.setAutoIncrementStep(10, TimeUnit.NANOSECONDS)); } public void testAutoIncrementStep_nanos() { FakeTicker ticker = new FakeTicker().setAutoIncrementStep(10, TimeUnit.NANOSECONDS); assertEquals(0, ticker.read()); assertEquals(10, ticker.read()); assertEquals(20, ticker.read()); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Feb 06 14:40:46 GMT 2024 - 6.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java
* if the timer expires, otherwise behaves like {@link #get()}. */ V get(long nanos) throws TimeoutException, CancellationException, ExecutionException, InterruptedException { // Attempt to acquire the shared lock with a timeout. if (!tryAcquireSharedNanos(-1, nanos)) { throw new TimeoutException("Timeout waiting for task."); } return getValue();
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed May 09 15:17:25 GMT 2018 - 13.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java
* if the timer expires, otherwise behaves like {@link #get()}. */ V get(long nanos) throws TimeoutException, CancellationException, ExecutionException, InterruptedException { // Attempt to acquire the shared lock with a timeout. if (!tryAcquireSharedNanos(-1, nanos)) { throw new TimeoutException("Timeout waiting for task."); } return getValue();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Apr 06 12:56:11 GMT 2023 - 13.6K bytes - Viewed (0)