Searched defs:elapsed (Results 1 - 9 of 9) sorted by relevance

/frameworks/base/libs/hwui/utils/
H A DTiming.h33 long long elapsed = (stop.tv_sec * 1000000) - (mStart.tv_sec * 1000000) local
35 ALOGD("%s took %.2fms", mMethodName, elapsed / 1000.0);
/frameworks/rs/tests/latency/
H A Dlatency.cpp87 long long elapsed = (stop.tv_sec * 1000000) - (start.tv_sec * 1000000) + (stop.tv_usec - start.tv_usec); local
88 printf("elapsed time : %lld microseconds\n", elapsed);
89 printf("time per iter: %f microseconds\n", (double)elapsed / iters);
102 elapsed = (stop.tv_sec * 1000000) - (start.tv_sec * 1000000) + (stop.tv_usec - start.tv_usec);
103 printf("elapsed time with copy : %lld microseconds\n", elapsed);
104 printf("time per iter with copy: %f microseconds\n", (double)elapsed / iters);
/frameworks/av/media/libcpustats/
H A DThreadCpuUsage.cpp127 long long ThreadCpuUsage::elapsed() const function in class:android::ThreadCpuUsage
129 long long elapsed; local
136 elapsed = 0;
139 elapsed = (ts.tv_sec - mMonotonicTs.tv_sec) * 1000000000LL +
143 ALOGW("Can't compute elapsed time because measurements have never been enabled");
144 elapsed = 0;
146 ALOGV("elapsed %lld", elapsed);
147 return elapsed;
/frameworks/base/services/core/java/com/android/server/trust/
H A DTrustArchive.java151 private static String formatElapsed(long elapsed) { argument
152 long delta = elapsed - SystemClock.elapsedRealtime();
/frameworks/av/media/libmedia/
H A DAudioRecord.cpp622 struct timespec *elapsed, size_t *nonContig)
673 // FIXME starts the requested timeout and elapsed over from scratch
674 status = proxy->obtainBuffer(&buffer, requested, elapsed);
621 obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, struct timespec *elapsed, size_t *nonContig) argument
H A DAudioTrackShared.cpp71 struct timespec *elapsed)
74 struct timespec total; // total elapsed time spent waiting
77 bool measure = elapsed != NULL; // whether to measure total elapsed time spent waiting
229 // update total elapsed time spent waiting
268 if (elapsed != NULL) {
269 *elapsed = total;
275 ALOGV("requested %ld.%03ld elapsed %ld.%03ld",
378 struct timespec total; // total elapsed time spent waiting
70 obtainBuffer(Buffer* buffer, const struct timespec *requested, struct timespec *elapsed) argument
H A DAudioTrack.cpp1292 struct timespec *elapsed, size_t *nonContig)
1349 // FIXME starts the requested timeout and elapsed over from scratch
1350 status = proxy->obtainBuffer(&buffer, requested, elapsed);
1291 obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, struct timespec *elapsed, size_t *nonContig) argument
/frameworks/native/cmds/dumpstate/
H A Dutils.c351 int64_t elapsed = nanotime() - start; local
358 if (title) printf("[%s: %.3fs elapsed]\n\n", command, (float)elapsed / NANOS_PER_SEC);
362 if (timeout_seconds && elapsed / NANOS_PER_SEC > timeout_seconds) {
363 printf("*** %s: Timed out after %.3fs (killing pid %d)\n", command, (float) elapsed / NANOS_PER_SEC, pid);
622 dprintf(fd, "[dump dalvik stack %d: %.3fs elapsed]\n",
642 dprintf(fd, "[dump native stack %d: %.3fs elapsed]\n",
/frameworks/av/services/audioflinger/
H A DThreads.cpp270 // mCpuUsage.elapsed() is expensive, so don't call it every loop
272 long long elapsed = mCpuUsage.elapsed(); local
273 if (elapsed >= DEBUG_CPU_USAGE * 1000000000LL) {
274 double perLoop = elapsed / (double) n;
294 elapsed * .000000001, n, perLoop * .000001,

Completed in 3591 milliseconds