Home
last modified time | relevance | path

Searched refs:toMicros (Results 1 – 14 of 14) sorted by relevance

/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/
DTimeUnit.java20 public long toMicros(long d) { return d/(C1/C0); } in toMicros() method
31 public long toMicros(long d) { return d; } in toMicros() method
37 public long convert(long d, TimeUnit u) { return u.toMicros(d); } in convert()
42 public long toMicros(long d) { return x(d, C2/C1, MAX/(C2/C1)); } in toMicros() method
53 public long toMicros(long d) { return x(d, C3/C1, MAX/(C3/C1)); } in toMicros() method
64 public long toMicros(long d) { return x(d, C4/C1, MAX/(C4/C1)); } in toMicros() method
75 public long toMicros(long d) { return x(d, C5/C1, MAX/(C5/C1)); } in toMicros() method
86 public long toMicros(long d) { return x(d, C6/C1, MAX/(C6/C1)); } in toMicros() method
123 public long toMicros(long duration) { in toMicros() method in TimeUnit
/external/opencensus-java/exporters/trace/jaeger/src/test/java/io/opencensus/exporter/trace/jaeger/
DJaegerExporterHandlerIntegrationTest.java163 .isAtLeast(MILLISECONDS.toMicros(startTimeInMillis)); in exportToJaeger()
164 assertThat(span.get("startTime").getAsLong()).isAtMost(MILLISECONDS.toMicros(endTimeInMillis)); in exportToJaeger()
166 .isAtLeast(MILLISECONDS.toMicros(spanDurationInMillis)); in exportToJaeger()
169 MILLISECONDS.toMicros(spanDurationInMillis + timeWaitingForSpansToBeExportedInMillis)); in exportToJaeger()
183 assertThat(ts1).isAtLeast(MILLISECONDS.toMicros(startTimeInMillis)); in exportToJaeger()
184 assertThat(ts1).isAtMost(MILLISECONDS.toMicros(endTimeInMillis)); in exportToJaeger()
194 assertThat(ts2).isAtLeast(MILLISECONDS.toMicros(startTimeInMillis)); in exportToJaeger()
195 assertThat(ts2).isAtMost(MILLISECONDS.toMicros(endTimeInMillis)); in exportToJaeger()
DJaegerExporterHandlerTest.java98 assertThat(span.startTime).isEqualTo(MILLISECONDS.toMicros(startTime)); in exportShouldConvertFromSpanDataToJaegerThriftSpan()
99 assertThat(span.duration).isEqualTo(MILLISECONDS.toMicros(endTime - startTime)); in exportShouldConvertFromSpanDataToJaegerThriftSpan()
/external/guava/guava/src/com/google/common/util/concurrent/
DSmoothRateLimiter.java232 this.warmupPeriodMicros = timeUnit.toMicros(warmupPeriod); in SmoothWarmingUp()
339 double stableIntervalMicros = SECONDS.toMicros(1L) / permitsPerSecond; in doSetRate()
348 return SECONDS.toMicros(1L) / stableIntervalMicros; in doGetRate()
DRateLimiter.java275 return 1.0 * microsToWait / SECONDS.toMicros(1L); in acquire()
350 long timeoutMicros = max(unit.toMicros(timeout), 0); in tryAcquire()
/external/protobuf/java/util/src/test/java/com/google/protobuf/util/
DTimeUtilTest.java373 assertEquals(1111111, TimeUtil.toMicros(timestamp)); in testTimestampConversion()
384 assertEquals(-888889, TimeUtil.toMicros(timestamp)); in testTimestampConversion()
397 assertEquals(1111111, TimeUtil.toMicros(duration)); in testDurationConversion()
408 assertEquals(-1111111, TimeUtil.toMicros(duration)); in testDurationConversion()
/external/opencensus-java/exporters/trace/zipkin/src/main/java/io/opencensus/exporter/trace/zipkin/
DZipkinExporterHandler.java170 return SECONDS.toMicros(timestamp.getSeconds()) + NANOSECONDS.toMicros(timestamp.getNanos()); in toEpochMicros()
/external/opencensus-java/exporters/trace/jaeger/src/main/java/io/opencensus/exporter/trace/jaeger/
DJaegerExporterHandler.java271 : SECONDS.toMicros(timestamp.getSeconds()) + NANOSECONDS.toMicros(timestamp.getNanos()); in timestampToMicros()
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DTimeUtil.java320 public static long toMicros(Timestamp timestamp) { in toMicros() method in TimeUtil
330 public static long toMicros(Duration duration) { in toMicros() method in TimeUtil
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/
DTracezZPageHandler.java309 long microsField = TimeUnit.NANOSECONDS.toMicros(span.getStartTimestamp().getNanos()); in emitSingleSpan()
359 TimeUnit.NANOSECONDS.toMicros( in emitSingleSpan()
371 microsField = TimeUnit.NANOSECONDS.toMicros(event.getTimestamp().getNanos()); in emitSingleSpan()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DRateLimiterTest.java445 return NANOSECONDS.toMicros(instant); in readMicros()
449 sleepMicros("U", MILLISECONDS.toMicros(millis)); in sleepMillis()
/external/webrtc/talk/app/webrtc/java/src/org/webrtc/
DMediaCodecVideoDecoder.java529 info, TimeUnit.MILLISECONDS.toMicros(dequeueTimeoutMs)); in dequeueOutputBuffer()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DGrpcUtil.java624 return unit.toMicros(timeoutNanos) + "u"; in toAsciiString()
/external/grpc-grpc-java/interop-testing/src/main/java/io/grpc/testing/integration/
DAbstractInteropTest.java1085 .setIntervalUs((int) TimeUnit.SECONDS.toMicros(20))) in deadlineExceeded()