Home
last modified time | relevance | path

Searched refs:nanos (Results 1 – 25 of 32) sorted by relevance

12

/external/slf4j/slf4j-ext/src/main/java/org/slf4j/profiler/
DUtil.java59 static public double convertToMicros(long nanos) { in convertToMicros() argument
60 return (double) nanos / NANOS_IN_ONE_MICROSECOND; in convertToMicros()
63 static public double convertToMillis(long nanos) { in convertToMillis() argument
64 return (double) nanos / NANOS_IN_ONE_MILLISECOND; in convertToMillis()
67 static public double convertToSeconds(long nanos) { in convertToSeconds() argument
68 return ((double) nanos / NANOS_IN_ONE_SECOND); in convertToSeconds()
76 static String durationInDurationUnitsAsStr(long nanos, DurationUnit durationUnit) { in durationInDurationUnitsAsStr() argument
80 buf.append(nanos); in durationInDurationUnitsAsStr()
83 double micros = convertToMicros(nanos); in durationInDurationUnitsAsStr()
87 double millis = convertToMillis(nanos); in durationInDurationUnitsAsStr()
[all …]
/external/guava/guava/src/com/google/common/base/
DStopwatch.java216 long nanos = elapsedNanos(); in toString() local
218 TimeUnit unit = chooseUnit(nanos); in toString()
219 double value = (double) nanos / NANOSECONDS.convert(1, unit); in toString()
225 private static TimeUnit chooseUnit(long nanos) { in chooseUnit() argument
226 if (DAYS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
229 if (HOURS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
232 if (MINUTES.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
235 if (SECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
238 if (MILLISECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
241 if (MICROSECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
DSuppliers.java187 long nanos = expirationNanos; in get() local
189 if (nanos == 0 || now - nanos >= 0) { in get()
191 if (nanos == expirationNanos) { // recheck for lost race in get()
194 nanos = now + durationNanos; in get()
197 expirationNanos = (nanos == 0) ? 1 : nanos; in get()
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/
DStopwatch.java210 private static TimeUnit chooseUnit(long nanos) { in chooseUnit() argument
211 if (DAYS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
214 if (HOURS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
217 if (MINUTES.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
220 if (SECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
223 if (MILLISECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
226 if (MICROSECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
/external/guava/guava-bootstrap/src/java/util/concurrent/
DAbstractExecutorService.java39 boolean timed, long nanos) in doInvokeAny() argument
70 f = ecs.poll(nanos, TimeUnit.NANOSECONDS); in doInvokeAny()
74 nanos -= now - lastTime; in doInvokeAny()
155 long nanos = unit.toNanos(timeout); in invokeAll() local
168 nanos -= now - lastTime; in invokeAll()
170 if (nanos <= 0) in invokeAll()
176 if (nanos <= 0) in invokeAll()
179 f.get(nanos, TimeUnit.NANOSECONDS); in invokeAll()
186 nanos -= now - lastTime; in invokeAll()
/external/llvm/include/llvm/Support/
DTimeValue.h100 explicit TimeValue (SecondsType seconds, NanoSecondsType nanos = 0)
101 : seconds_( seconds ), nanos_( nanos ) { this->normalize(); } in seconds_()
267 void getTimespecTime( uint64_t& seconds, uint32_t& nanos ) const { in getTimespecTime() argument
269 nanos = nanos_; in getTimespecTime()
296 void nanoseconds ( NanoSecondsType nanos ) { in nanoseconds() argument
297 this->nanos_ = nanos; in nanoseconds()
/external/caliper/caliper/src/main/java/com/google/caliper/worker/
DRuntimeWorker.java75 long nanos = invokeTimeMethod(nextReps); in measure() local
78 .value(Value.create(nanos, "ns")) in measure()
83 totalNanos += nanos; in measure()
94 @VisibleForTesting static long calculateTargetReps(long reps, long nanos, long targetNanos, in calculateTargetReps() argument
96 double targetReps = (((double) reps) / nanos) * targetNanos; in calculateTargetReps()
DMacrobenchmarkWorker.java70 long nanos = stopwatch.stop().elapsed(NANOSECONDS); in measure() local
75 .value(Value.create(nanos, "ns")) in measure()
/external/guava/guava-testlib/src/com/google/common/testing/
DFakeTicker.java43 private final AtomicLong nanos = new AtomicLong(); field in FakeTicker
53 nanos.addAndGet(nanoseconds); in advance()
70 return nanos.getAndAdd(autoIncrementStepNanos); in read()
/external/drm_hwcomposer/
Dworker.cpp149 int64_t nanos = (int64_t)abs_deadline.tv_nsec + max_nanoseconds; in WaitForSignalOrExitLocked() local
150 abs_deadline.tv_sec += nanos / kBillion; in WaitForSignalOrExitLocked()
151 abs_deadline.tv_nsec = nanos % kBillion; in WaitForSignalOrExitLocked()
/external/guava/guava/src/com/google/common/util/concurrent/
DMoreExecutors.java345 long nanos = unit.toNanos(timeout); in awaitTermination() local
351 } else if (nanos <= 0) { in awaitTermination()
354 nanos = termination.awaitNanos(nanos); in awaitTermination()
673 Collection<? extends Callable<T>> tasks, boolean timed, long nanos) in invokeAnyImpl() argument
708 f = futureQueue.poll(nanos, TimeUnit.NANOSECONDS); in invokeAnyImpl()
713 nanos -= now - lastTime; in invokeAnyImpl()
DMonitor.java1014 private boolean awaitNanos(Guard guard, long nanos, boolean signalBeforeWaiting) in awaitNanos() argument
1022 if (nanos < 0L) { in awaitNanos()
1025 nanos = guard.condition.awaitNanos(nanos); in awaitNanos()
DAbstractFuture.java264 V get(long nanos) throws TimeoutException, CancellationException, in get() argument
268 if (!tryAcquireSharedNanos(-1, nanos)) { in get()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DSimpleTimeLimiterTest.java175 long nanos = System.nanoTime() - startNanos; in assertTheCallTookBetween() local
176 assertTrue(nanos >= atLeastMillis * 1000000); in assertTheCallTookBetween()
177 assertTrue(nanos <= atMostMillis * 1000000); in assertTheCallTookBetween()
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DRuntimeInstrument.java407 double nanos = measurement.value().magnitude() / measurement.weight(); in validateMeasurement() local
408 if (!notifiedAboutGranularity && ((nanos / 1000) > nanoTimeGranularity.to(NANOSECONDS))) { in validateMeasurement()
456 double nanos = measurement.value().magnitude() / measurement.weight(); in validateMeasurement() local
457 if ((nanos / 1000) < nanoTimeGranularity.to(NANOSECONDS)) { in validateMeasurement()
458 ShortDuration runtime = ShortDuration.of(BigDecimal.valueOf(nanos), NANOSECONDS); in validateMeasurement()
/external/jetty/src/java/org/eclipse/jetty/util/
DBlockingArrayQueue.java331 long nanos = unit.toNanos(time); in poll() local
340 if (nanos<=0) in poll()
342 nanos = _notEmpty.awaitNanos(nanos); in poll()
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/execution/
DExecutionUtils.java59 long nanos = millis * 1000000L; in waitEventLoop() local
66 } while (System.nanoTime() - start < nanos); in waitEventLoop()
/external/caliper/caliper/src/main/java/com/google/caliper/util/
DShortDuration.java54 long nanos = TimeUnit.NANOSECONDS.convert(duration, unit); in of() local
55 return new PositiveShortDuration(nanos * 1000); in of()
/external/robolectric/v3/libs/
Dsqlite4java-0.282.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/almworks/ com/ ...
/external/owasp/sanitizer/distrib/lib/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/owasp/sanitizer/lib/guava-libraries/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/guice/lib/
Dguava-16.0.1.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
/external/robolectric/v3/runtime/
Dandroid-all-4.2.2_r1.2-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-4.3_r2-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-4.4_r1-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...

12