Searched refs:nowNanos (Results 1 – 9 of 9) sorted by relevance
187 return hasBeenEnded ? endNanoTime : clock.nowNanos(); in getEndNanoTime()199 return hasBeenEnded ? endNanoTime - startNanoTime : clock.nowNanos() - startNanoTime; in getLatencyNs()312 clock.nowNanos(), in addAnnotation()326 .addEvent(new EventWithNanoTime<Annotation>(clock.nowNanos(), annotation)); in addAnnotation()341 clock.nowNanos(), checkNotNull(messageEvent, "networkEvent"))); in addMessageEvent()381 endNanoTime = clock.nowNanos(); in end()577 startNanoTime = clock.nowNanos(); in RecordEventsSpanImpl()
124 final long nowNanos = ticker.read(); in timeRemaining() local125 if (!expired && deadlineNanos - nowNanos <= 0) { in timeRemaining()128 return unit.convert(deadlineNanos - nowNanos, TimeUnit.NANOSECONDS); in timeRemaining()
50 long nanos1 = clock.nowNanos(); in measureElapsedTime()52 long nanos2 = clock.nowNanos(); in measureElapsedTime()
42 public abstract long nowNanos(); in nowNanos() method in Clock
46 public long nowNanos() { in nowNanos() method in ZeroTimeClock
45 public long nowNanos() { in nowNanos() method in MillisClock
34 return new TimestampConverter(clock.now(), clock.nowNanos()); in now()
45 when(mockClock.nowNanos()).thenReturn(1234L); in convertNanoTime()
90 public synchronized long nowNanos() { in nowNanos() method in TestClock