Searched refs:ofNanos (Results 1 - 7 of 7) sorted by relevance

/libcore/ojluni/src/main/java/java/time/temporal/
H A DChronoUnit.java83 NANOS("Nanos", Duration.ofNanos(1)),
88 MICROS("Micros", Duration.ofNanos(1000)),
93 MILLIS("Millis", Duration.ofNanos(1000_000)),
/libcore/luni/src/test/java/libcore/java/time/
H A DDurationTest.java81 { Instant.MAX, Duration.ofNanos(1) },
82 { LocalDateTime.MAX, Duration.ofNanos(1) },
84 { ZonedDateTime.of(LocalDateTime.MAX, ZoneOffset.UTC ), Duration.ofNanos(1) },
108 { Instant.MIN, Duration.ofNanos(1) },
109 { LocalDateTime.MIN, Duration.ofNanos(1) },
112 { ZonedDateTime.of(LocalDateTime.MIN, ZoneOffset.UTC ), Duration.ofNanos(1) },
/libcore/ojluni/src/test/java/time/tck/java/time/
H A DTCKClock_Tick.java96 Clock test = Clock.tick(Clock.fixed(ZDT.withNano(i * 1000).toInstant(), PARIS), Duration.ofNanos(250_000));
104 Clock test = Clock.tick(Clock.fixed(ZDT.withNano(i).toInstant(), PARIS), Duration.ofNanos(20));
118 Clock test = Clock.tick(underlying, Duration.ofNanos(1));
H A DTCKDuration.java192 // ofNanos(long)
196 Duration test = Duration.ofNanos(1);
203 Duration test = Duration.ofNanos(1000000002);
210 Duration test = Duration.ofNanos(-2000000001);
217 Duration test = Duration.ofNanos(Long.MAX_VALUE);
224 Duration test = Duration.ofNanos(Long.MIN_VALUE);
878 assertEquals(Duration.ofNanos(0).isZero(), true);
880 assertEquals(Duration.ofNanos(1).isZero(), false);
883 assertEquals(Duration.ofNanos(-1).isZero(), false);
890 assertEquals(Duration.ofNanos(
[all...]
H A DTCKYearMonth.java822 {YearMonth.of(1, 1), Duration.ofNanos(365*24*3600*1000000000), null, DateTimeException.class},
1037 {YearMonth.of(1, 1), Duration.ofNanos(365*24*3600*1000000000), null, DateTimeException.class},
/libcore/ojluni/src/main/java/java/time/
H A DClock.java645 return "TickClock[" + baseClock + "," + Duration.ofNanos(tickNanos) + "]";
H A DDuration.java272 public static Duration ofNanos(long nanos) { method in class:Duration
467 return ofNanos(startInclusive.until(endExclusive, NANOS));

Completed in 462 milliseconds