Searched refs:durationInNanos (Results 1 – 2 of 2) sorted by relevance
/external/slf4j/slf4j-ext/src/main/java/org/slf4j/profiler/ |
D | Util.java | 47 static DurationUnit selectDurationUnitForDisplay(long durationInNanos) { in selectDurationUnitForDisplay() argument 48 if (durationInNanos < 10 * NANOS_IN_ONE_MICROSECOND) { in selectDurationUnitForDisplay() 50 } else if (durationInNanos < 10 * NANOS_IN_ONE_MILLISECOND) { in selectDurationUnitForDisplay() 52 } else if (durationInNanos < 10 * NANOS_IN_ONE_SECOND) { in selectDurationUnitForDisplay()
|
/external/guava/guava/src/com/google/common/cache/ |
D | CacheBuilderSpec.java | 249 durationInNanos(writeExpirationDuration, writeExpirationTimeUnit), in hashCode() 250 durationInNanos(accessExpirationDuration, accessExpirationTimeUnit), in hashCode() 251 durationInNanos(refreshDuration, refreshTimeUnit)); in hashCode() 270 && Objects.equal(durationInNanos(writeExpirationDuration, writeExpirationTimeUnit), in equals() 271 durationInNanos(that.writeExpirationDuration, that.writeExpirationTimeUnit)) in equals() 272 && Objects.equal(durationInNanos(accessExpirationDuration, accessExpirationTimeUnit), in equals() 273 durationInNanos(that.accessExpirationDuration, that.accessExpirationTimeUnit)) in equals() 274 && Objects.equal(durationInNanos(refreshDuration, refreshTimeUnit), in equals() 275 durationInNanos(that.refreshDuration, that.refreshTimeUnit)); in equals() 282 @Nullable private static Long durationInNanos(long duration, @Nullable TimeUnit unit) { in durationInNanos() method in CacheBuilderSpec
|