Home
last modified time | relevance | path

Searched refs:tv_diff (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/powerpc/benchmarks/
H A Dgettimeofday.c15 struct timeval tv_start, tv_end, tv_diff; in test_gettimeofday() local
23 timersub(&tv_end, &tv_start, &tv_diff); in test_gettimeofday()
25 printf("time = %.6f\n", tv_diff.tv_sec + (tv_diff.tv_usec) * 1e-6); in test_gettimeofday()
/linux/tools/testing/selftests/x86/
H A Dtest_vsyscall.c111 static double tv_diff(const struct timeval *a, const struct timeval *b) in tv_diff() function
130 d1 = tv_diff(tv_other, tv_sys1); in check_gtod()
131 d2 = tv_diff(tv_sys2, tv_other); in check_gtod()