summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-05-14 21:39:28 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-05-14 21:39:28 +0000
commiteffc08ed1eb1d55ca13997ec96f72e40a0866394 (patch)
tree6756c75fb3167c07451c1ad975e05f4c267f2eff
parent0dbff625c3128962b48f3476ceacb3ac80a3f421 (diff)
parent8df7184c17a6f7f7fa6612b6de30af655f5eb0a7 (diff)
Merge "Replace obsolete CLOCK_MONOTONIC_HR by CLOCK_MONOTONIC"
-rw-r--r--services/audioflinger/test-resample.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/audioflinger/test-resample.cpp b/services/audioflinger/test-resample.cpp
index b082e8ca..7a314cfa 100644
--- a/services/audioflinger/test-resample.cpp
+++ b/services/audioflinger/test-resample.cpp
@@ -219,12 +219,12 @@ int main(int argc, char* argv[]) {
memset(output_vaddr, 0, output_size);
timespec start, end;
- clock_gettime(CLOCK_MONOTONIC_HR, &start);
+ clock_gettime(CLOCK_MONOTONIC, &start);
resampler->resample((int*) output_vaddr, out_frames, &provider);
resampler->resample((int*) output_vaddr, out_frames, &provider);
resampler->resample((int*) output_vaddr, out_frames, &provider);
resampler->resample((int*) output_vaddr, out_frames, &provider);
- clock_gettime(CLOCK_MONOTONIC_HR, &end);
+ clock_gettime(CLOCK_MONOTONIC, &end);
int64_t start_ns = start.tv_sec * 1000000000LL + start.tv_nsec;
int64_t end_ns = end.tv_sec * 1000000000LL + end.tv_nsec;
int64_t time = (end_ns - start_ns)/4;