Searched refs:durationNanos (Results 1 – 2 of 2) sorted by relevance
143 int durationNanos = getNanos() - timestamp.getNanos(); in subtractTimestamp() local144 if (durationSeconds < 0 && durationNanos > 0) { in subtractTimestamp()146 durationNanos = (int) (durationNanos - NANOS_PER_SECOND); in subtractTimestamp()147 } else if (durationSeconds > 0 && durationNanos < 0) { in subtractTimestamp()149 durationNanos = (int) (durationNanos + NANOS_PER_SECOND); in subtractTimestamp()151 return Duration.create(durationSeconds, durationNanos); in subtractTimestamp()
168 final long durationNanos; field in Suppliers.ExpiringMemoizingSupplier176 this.durationNanos = unit.toNanos(duration); in ExpiringMemoizingSupplier()194 nanos = now + durationNanos; in get()209 durationNanos + ", NANOS)"; in toString()