Searched refs:tv_diff (Results 1 – 3 of 3) sorted by relevance
/linux-6.6.21/tools/testing/selftests/powerpc/benchmarks/ |
D | gettimeofday.c | 15 struct timeval tv_start, tv_end, tv_diff; in test_gettimeofday() local 23 timersub(&tv_start, &tv_end, &tv_diff); in test_gettimeofday() 25 printf("time = %.6f\n", tv_diff.tv_sec + (tv_diff.tv_usec) * 1e-6); in test_gettimeofday()
|
/linux-6.6.21/tools/perf/bench/ |
D | mem-functions.c | 256 struct timeval tv_start, tv_end, tv_diff; in do_memcpy_gettimeofday() local 267 timersub(&tv_end, &tv_start, &tv_diff); in do_memcpy_gettimeofday() 269 return (double)(((double)size * nr_loops) / timeval2double(&tv_diff)); in do_memcpy_gettimeofday() 326 struct timeval tv_start, tv_end, tv_diff; in do_memset_gettimeofday() local 341 timersub(&tv_end, &tv_start, &tv_diff); in do_memset_gettimeofday() 343 return (double)(((double)size * nr_loops) / timeval2double(&tv_diff)); in do_memset_gettimeofday()
|
/linux-6.6.21/tools/testing/selftests/x86/ |
D | test_vsyscall.c | 190 static double tv_diff(const struct timeval *a, const struct timeval *b) in tv_diff() function 211 d1 = tv_diff(tv_other, tv_sys1); in check_gtod() 212 d2 = tv_diff(tv_sys2, tv_other); in check_gtod()
|