Home
last modified time | relevance | path

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

/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/jmonkeyengine/engine/src/test/jme3test/app/
DTestTempVars.java45 long milliseconds, nanos; in main() local
61 nanos = System.nanoTime(); in main()
65 milliseconds = (System.nanoTime() - nanos) / NANOS_TO_MS; in main()
70 nanos = System.nanoTime(); in main()
74 milliseconds = (System.nanoTime() - nanos) / NANOS_TO_MS; in main()
78 nanos = System.nanoTime(); in main()
82 milliseconds = (System.nanoTime() - nanos) / NANOS_TO_MS; in main()
/external/guava/guava/src/com/google/common/base/
DStopwatch.java215 long nanos = elapsedNanos(); in toString() local
217 TimeUnit unit = chooseUnit(nanos); in toString()
218 double value = (double) nanos / NANOSECONDS.convert(1, unit); in toString()
224 private static TimeUnit chooseUnit(long nanos) { in chooseUnit() argument
225 if (SECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
228 if (MILLISECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
231 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.java212 private static TimeUnit chooseUnit(long nanos) { in chooseUnit() argument
213 if (DAYS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
216 if (HOURS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
219 if (MINUTES.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
222 if (SECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
225 if (MILLISECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
228 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/guava/guava/src/com/google/common/util/concurrent/
DAbstractListeningExecutorService.java122 long nanos = unit.toNanos(timeout); in invokeAll() local
138 nanos -= now - lastTime; in invokeAll()
140 if (nanos <= 0) { in invokeAll()
147 if (nanos <= 0) { in invokeAll()
151 f.get(nanos, TimeUnit.NANOSECONDS); in invokeAll()
156 nanos -= now - lastTime; in invokeAll()
DMoreExecutors.java343 long nanos = unit.toNanos(timeout); in awaitTermination() local
349 } else if (nanos <= 0) { in awaitTermination()
352 nanos = termination.awaitNanos(nanos); in awaitTermination()
607 Collection<? extends Callable<T>> tasks, boolean timed, long nanos) in invokeAnyImpl() argument
642 f = futureQueue.poll(nanos, TimeUnit.NANOSECONDS); in invokeAnyImpl()
647 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/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/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/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/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()