- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for toSafeNanos (0.06 seconds)
-
android/guava/src/com/google/common/util/concurrent/Monitor.java
* * @return whether the monitor was entered */ @SuppressWarnings("GoodTime") // should accept a java.time.Duration public boolean enter(long time, TimeUnit unit) { long timeoutNanos = toSafeNanos(time, unit); ReentrantLock lock = this.lock; if (!fair && lock.tryLock()) { return true; } boolean interrupted = Thread.interrupted(); try { long startTime = System.nanoTime();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jan 28 22:39:02 GMT 2026 - 43.5K bytes - Click Count (0)