Home
last modified time | relevance | path

Searched refs:durationNanos (Results 1 – 2 of 2) sorted by relevance

/external/opencensus-java/api/src/main/java/io/opencensus/common/
DTimestamp.java143 int durationNanos = getNanos() - timestamp.getNanos(); in subtractTimestamp() local
144 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()
/external/guava/guava/src/com/google/common/base/
DSuppliers.java168 final long durationNanos; field in Suppliers.ExpiringMemoizingSupplier
176 this.durationNanos = unit.toNanos(duration); in ExpiringMemoizingSupplier()
194 nanos = now + durationNanos; in get()
209 durationNanos + ", NANOS)"; in toString()