summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/test-resample.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2013-05-10 09:29:51 -0700
committerElliott Hughes <enh@google.com>2013-05-14 14:38:51 -0700
commit4a434ce11e328ab97b02ca3cc44e920bc82c198b (patch)
treeb5962d37a5948d6b5b50becd5c4428d8cb41b8ef /services/audioflinger/test-resample.cpp
parent189660fdc736b495fee20d4a83a7d8a3573e4309 (diff)
downloadframeworks_av-4a434ce11e328ab97b02ca3cc44e920bc82c198b.zip
frameworks_av-4a434ce11e328ab97b02ca3cc44e920bc82c198b.tar.gz
frameworks_av-4a434ce11e328ab97b02ca3cc44e920bc82c198b.tar.bz2
Replace obsolete CLOCK_MONOTONIC_HR by CLOCK_MONOTONIC
(cherry-pick of da1a325bc0a1421f4233e62704da4fab8b0acf7b.) Bug: 8895727 Change-Id: I29d5dcf8519600fdd2910345449c66a5c1284646
Diffstat (limited to 'services/audioflinger/test-resample.cpp')
-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 b082e8c..7a314cf 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;