/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 | 186 long nanos = elapsedNanos(); in toString() local 188 TimeUnit unit = chooseUnit(nanos); in toString() 189 double value = (double) nanos / NANOSECONDS.convert(1, unit); in toString() 196 private static TimeUnit chooseUnit(long nanos) { in chooseUnit() argument 197 if (SECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit() 200 if (MILLISECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit() 203 if (MICROSECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
|
D | Suppliers.java | 168 long nanos = expirationNanos; in get() local 170 if (nanos == 0 || now - nanos >= 0) { in get() 172 if (nanos == expirationNanos) { // recheck for lost race in get() 175 nanos = now + durationNanos; in get() 178 expirationNanos = (nanos == 0) ? 1 : nanos; in get()
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
D | AbstractListeningExecutorService.java | 63 private <T> T doInvokeAny(Collection<? extends Callable<T>> tasks, boolean timed, long nanos) in doInvokeAny() argument 98 f = ecs.poll(nanos, TimeUnit.NANOSECONDS); in doInvokeAny() 103 nanos -= now - lastTime; in doInvokeAny() 186 long nanos = unit.toNanos(timeout); in invokeAll() local 202 nanos -= now - lastTime; in invokeAll() 204 if (nanos <= 0) { in invokeAll() 211 if (nanos <= 0) { in invokeAll() 215 f.get(nanos, TimeUnit.NANOSECONDS); in invokeAll() 222 nanos -= now - lastTime; in invokeAll()
|
D | MoreExecutors.java | 299 long nanos = unit.toNanos(timeout); in awaitTermination() local 305 } else if (nanos <= 0) { in awaitTermination() 308 nanos = termination.awaitNanos(nanos); in awaitTermination()
|
D | AbstractFuture.java | 254 V get(long nanos) throws TimeoutException, CancellationException, in get() argument 258 if (!tryAcquireSharedNanos(-1, nanos)) { in get()
|
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/ |
D | Stopwatch.java | 168 private static TimeUnit chooseUnit(long nanos) { in chooseUnit() argument 169 if (SECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit() 172 if (MILLISECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit() 175 if (MICROSECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
|
/external/guava/guava-testlib/src/com/google/common/testing/ |
D | FakeTicker.java | 38 private final AtomicLong nanos = new AtomicLong(); field in FakeTicker 47 nanos.addAndGet(nanoseconds); in advance() 52 return nanos.get(); in read()
|
/external/llvm/include/llvm/Support/ |
D | TimeValue.h | 88 explicit TimeValue (SecondsType seconds, NanoSecondsType nanos = 0) 89 : seconds_( seconds ), nanos_( nanos ) { this->normalize(); } in seconds_() 263 void getTimespecTime( uint64_t& seconds, uint32_t& nanos ) const { in getTimespecTime() argument 265 nanos = nanos_; in getTimespecTime() 292 void nanoseconds ( NanoSecondsType nanos ) { in nanoseconds() argument 293 this->nanos_ = nanos; in nanoseconds()
|
/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/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()
|