Home
last modified time | relevance | path

Searched refs:nowNanos (Results 1 – 11 of 11) sorted by relevance

/external/okio/okio/src/jvmTest/kotlin/okio/
DThrottlerTakeTest.kt23 private var nowNanos = 0L variable in okio.ThrottlerTakeTest
25 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()
/external/grpc-grpc-java/context/src/main/java/io/grpc/
DDeadline.java124 final long nowNanos = ticker.read(); in timeRemaining() local
125 if (!expired && deadlineNanos - nowNanos <= 0) { in timeRemaining()
128 return unit.convert(deadlineNanos - nowNanos, TimeUnit.NANOSECONDS); in timeRemaining()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/
DRecordEventsSpanImpl.java187 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()
/external/opencensus-java/testing/src/test/java/io/opencensus/testing/common/
DTestClockTest.java50 long nanos1 = clock.nowNanos(); in measureElapsedTime()
52 long nanos2 = clock.nowNanos(); in measureElapsedTime()
/external/opencensus-java/api/src/main/java/io/opencensus/common/
DClock.java42 public abstract long nowNanos(); in nowNanos() method in Clock
/external/opencensus-java/api/src/main/java/io/opencensus/internal/
DZeroTimeClock.java46 public long nowNanos() { in nowNanos() method in ZeroTimeClock
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/common/
DMillisClock.java45 public long nowNanos() { in nowNanos() method in MillisClock
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/internal/
DTimestampConverter.java34 return new TimestampConverter(clock.now(), clock.nowNanos()); in now()
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/internal/
DTimestampConverterTest.java45 when(mockClock.nowNanos()).thenReturn(1234L); in convertNanoTime()
/external/opencensus-java/testing/src/main/java/io/opencensus/testing/common/
DTestClock.java90 public synchronized long nowNanos() { in nowNanos() method in TestClock
/external/oboe/apps/OboeTester/app/src/main/cpp/
DNativeAudioContext.h203 int64_t nowNanos = getNanoseconds(); in getColdStartInputMillis() local
207 nowNanos); in getColdStartInputMillis()