Searched refs:tp2 (Results 1 – 5 of 5) sorted by relevance
/device/google/dragon/audio/hal/dsp/tests/ |
D | eq_test.c | 21 static double tp_diff(struct timespec *tp2, struct timespec *tp1) in tp_diff() argument 23 return (tp2->tv_sec - tp1->tv_sec) in tp_diff() 24 + (tp2->tv_nsec - tp1->tv_nsec) * 1e-9; in tp_diff() 34 struct timespec tp1, tp2; in test_ir() local 51 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp2); in test_ir() 52 printf("processing takes %g seconds\n", tp_diff(&tp2, &tp1)); in test_ir() 76 struct timespec tp1, tp2; in test_file() local 95 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp2); in test_file() 97 tp_diff(&tp2, &tp1), frames); in test_file() 110 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp2); in test_file() [all …]
|
D | crossover_test.c | 23 static double tp_diff(struct timespec *tp2, struct timespec *tp1) in tp_diff() argument 25 return (tp2->tv_sec - tp1->tv_sec) in tp_diff() 26 + (tp2->tv_nsec - tp1->tv_nsec) * 1e-9; in tp_diff() 43 struct timespec tp1, tp2; in main() local 62 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp2); in main() 64 tp_diff(&tp2, &tp1), frames); in main() 70 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp2); in main() 72 tp_diff(&tp2, &tp1), frames); in main()
|
D | crossover2_test.c | 23 static double tp_diff(struct timespec *tp2, struct timespec *tp1) in tp_diff() argument 25 return (tp2->tv_sec - tp1->tv_sec) in tp_diff() 26 + (tp2->tv_nsec - tp1->tv_nsec) * 1e-9; in tp_diff() 45 struct timespec tp1, tp2; in main() local 65 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp2); in main() 67 tp_diff(&tp2, &tp1), frames * 2); in main()
|
D | eq2_test.c | 21 static double tp_diff(struct timespec *tp2, struct timespec *tp1) in tp_diff() argument 23 return (tp2->tv_sec - tp1->tv_sec) in tp_diff() 24 + (tp2->tv_nsec - tp1->tv_nsec) * 1e-9; in tp_diff() 42 struct timespec tp1, tp2; in test_file() local 67 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp2); in test_file() 69 tp_diff(&tp2, &tp1), frames * 2); in test_file()
|
D | drc_test.c | 20 static double tp_diff(struct timespec *tp2, struct timespec *tp1) in tp_diff() argument 22 return (tp2->tv_sec - tp1->tv_sec) in tp_diff() 23 + (tp2->tv_nsec - tp1->tv_nsec) * 1e-9; in tp_diff() 28 struct timespec tp1, tp2; in process() local 40 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp2); in process() 42 tp_diff(&tp2, &tp1), frames * 2); in process()
|