/external/slf4j/slf4j-ext/src/main/java/org/slf4j/profiler/ |
D | Util.java | 59 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/ |
D | TestTempVars.java | 45 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/ |
D | Stopwatch.java | 215 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()
|
D | Suppliers.java | 187 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/ |
D | Stopwatch.java | 212 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/ |
D | AbstractExecutorService.java | 39 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/ |
D | AbstractListeningExecutorService.java | 122 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()
|
D | MoreExecutors.java | 343 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()
|
D | Monitor.java | 1014 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()
|
D | AbstractFuture.java | 264 V get(long nanos) throws TimeoutException, CancellationException, in get() argument 268 if (!tryAcquireSharedNanos(-1, nanos)) { in get()
|
/external/llvm/include/llvm/Support/ |
D | TimeValue.h | 100 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/ |
D | FakeTicker.java | 43 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/ |
D | SimpleTimeLimiterTest.java | 175 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/ |
D | BlockingArrayQueue.java | 331 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/ |
D | ExecutionUtils.java | 59 long nanos = millis * 1000000L; in waitEventLoop() local 66 } while (System.nanoTime() - start < nanos); in waitEventLoop()
|