- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for ofNanos (0.04 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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) -
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)