Searched refs:nowNanos (Results 1 – 11 of 11) sorted by relevance
23 private var nowNanos = 0L variable25 private val throttler = Throttler(allocatedUntil = nowNanos)111 val byteCountOrWaitNanos = throttler.byteCountOrWaitNanos(nowNanos, byteCount) in take()114 nowNanos += -byteCountOrWaitNanos in take()116 val resultAfterWait = throttler.byteCountOrWaitNanos(nowNanos, byteCount) in take()125 val byteCountOrWaitNanos = throttler.byteCountOrWaitNanos(nowNanos, remaining) in takeFully()129 nowNanos += -byteCountOrWaitNanos in takeFully()136 assertThat(nowNanos).isEqualTo(elapsedNanos) in assertElapsed()140 nowNanos += TimeUnit.MILLISECONDS.toNanos(millis) in sleep()
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()
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()
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
203 int64_t nowNanos = getNanoseconds(); in getColdStartInputMillis() local207 nowNanos); in getColdStartInputMillis()