- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for ofNanos (0.07 seconds)
-
guava-tests/test/com/google/common/util/concurrent/ListeningScheduledExecutorServiceTest.java
assertThat(recordedCommand).isSameInstanceAs(command); assertThat(recordedTimeUnit).isEqualTo(NANOSECONDS); assertThat(Duration.ofNanos(recordedDelay)).isEqualTo(Duration.ofDays(2)); assertThat(Duration.ofNanos(recordedInterval)).isEqualTo(Duration.ofHours(4)); } public void testScheduleWithFixedDelay() throws Exception { Runnable command = () -> {};
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 6.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/OkHttpClientTest.kt
try { builder.callTimeout(Duration.ofNanos(1)) } catch (ignored: IllegalArgumentException) { } try { builder.connectTimeout(Duration.ofNanos(1)) } catch (ignored: IllegalArgumentException) { } try { builder.writeTimeout(Duration.ofNanos(1)) } catch (ignored: IllegalArgumentException) { } try { builder.readTimeout(Duration.ofNanos(1))Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 13.4K bytes - Click Count (1) -
guava-tests/test/com/google/common/util/concurrent/ListeningExecutorServiceTest.java
assertThat(Duration.ofNanos(recordedTimeout)).isEqualTo(Duration.ofDays(365)); } public void testAwaitTermination() throws Exception { boolean result = executorService.awaitTermination(Duration.ofMinutes(144)); assertThat(result).isTrue(); assertThat(recordedTimeUnit).isEqualTo(NANOSECONDS); assertThat(Duration.ofNanos(recordedTimeout)).isEqualTo(Duration.ofMinutes(144)); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 4.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/StopwatchTest.java
} @GwtIncompatible @J2ktIncompatible public void testElapsed_duration() { stopwatch.start(); ticker.advance(999999); assertEquals(Duration.ofNanos(999999), stopwatch.elapsed()); ticker.advance(1); assertEquals(Duration.ofMillis(1), stopwatch.elapsed()); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 6.3K bytes - Click Count (0)