Searched refs:duration (Results 1 - 4 of 4) sorted by relevance

/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/
H A DTimeUnit.java80 * @param duration the duration
81 * @return converted duration or saturated value
83 private static long doConvert(int delta, long duration) { argument
85 return duration;
87 return duration / multipliers[-delta];
88 if (duration > overflows[delta])
90 if (duration < -overflows[delta])
92 return duration * multipliers[delta];
96 * Convert the given time duration i
111 convert(long duration, TimeUnit unit) argument
123 toNanos(long duration) argument
135 toMicros(long duration) argument
147 toMillis(long duration) argument
157 toSeconds(long duration) argument
[all...]
/dalvik/libcore/luni/src/test/java/com/google/coretests/
H A DStatsStore.java47 else return 0; // equivalent duration (maybe a bit faster)
49 else if (diff < 20) return 0; // not measurably slower: equivalent duration
50 else if ((double)diff / refDur < 0.2) return 0; // just little slower: equivalent duration
55 a.statMinDuration = a.duration;
56 a.statMaxDuration = a.duration;
57 a.statAvgDuration = a.duration;
62 if (a.duration < a.statMinDuration) a.statMinDuration = a.duration;
64 if (a.duration > a.statMaxDuration) a.statMaxDuration = a.duration;
[all...]
H A DPerfStatCollector.java42 long startTime, duration; field in class:PerfStatCollector.Item
65 else if (duration >= rthDurat) {
66 // long duration:
108 statCount, duration, lastDuration,
138 duration,
241 current.duration = currentTimeMillis() - current.startTime;
/dalvik/libcore/luni-kernel/src/test/java/tests/api/org/apache/harmony/kernel/dalvik/
H A DThreadsTest.java170 * the indicated value, noting the duration of time actually parked.
194 * either case, this constructor takes a duration to park for
226 * Wait for the test to complete and return the duration.
230 * @return the duration in milliseconds
250 * Asserts that the actual duration is within 5% of the
253 * @param expectedMillis the expected duration, in milliseconds
264 long duration = getDurationMillis(waitMillis);
266 if (duration < minimum) {
267 Assert.fail("expected duration: " + expectedMillis +
268 "; actual too short: " + duration);
[all...]

Completed in 101 milliseconds