Searched refs:tv_diff (Results 1 – 2 of 2) sorted by relevance
15 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()
111 static double tv_diff(const struct timeval *a, const struct timeval *b) in tv_diff() function130 d1 = tv_diff(tv_other, tv_sys1); in check_gtod()131 d2 = tv_diff(tv_sys2, tv_other); in check_gtod()