Lines Matching refs:diff
178 struct timespec start, end, diff; in bench_single() local
183 timespecsub(&end, &start, &diff); in bench_single()
184 printf(" vdso: %u times in %lu.%09lu seconds\n", TRIALS, diff.tv_sec, diff.tv_nsec); in bench_single()
189 timespecsub(&end, &start, &diff); in bench_single()
190 printf(" libc: %u times in %lu.%09lu seconds\n", TRIALS, diff.tv_sec, diff.tv_nsec); in bench_single()
195 timespecsub(&end, &start, &diff); in bench_single()
196 printf("syscall: %u times in %lu.%09lu seconds\n", TRIALS, diff.tv_sec, diff.tv_nsec); in bench_single()
201 struct timespec start, end, diff; in bench_multi() local
210 timespecsub(&end, &start, &diff); in bench_multi()
211 …printf(" vdso: %u x %u times in %lu.%09lu seconds\n", TRIALS, THREADS, diff.tv_sec, diff.tv_nsec… in bench_multi()
219 timespecsub(&end, &start, &diff); in bench_multi()
220 …printf(" libc: %u x %u times in %lu.%09lu seconds\n", TRIALS, THREADS, diff.tv_sec, diff.tv_nsec… in bench_multi()
228 timespecsub(&end, &start, &diff); in bench_multi()
229 …printf(" syscall: %u x %u times in %lu.%09lu seconds\n", TRIALS, THREADS, diff.tv_sec, diff.tv_n… in bench_multi()