Searched refs:tv_end (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/tools/testing/selftests/powerpc/benchmarks/
H A Dgettimeofday.c15 struct timeval tv_start, tv_end; test_gettimeofday() local
20 gettimeofday(&tv_end, NULL); test_gettimeofday()
23 printf("time = %.6f\n", tv_end.tv_sec - tv_start.tv_sec + (tv_end.tv_usec - tv_start.tv_usec) * 1e-6); test_gettimeofday()
/linux-4.4.14/tools/perf/bench/
H A Dmem-functions.c236 struct timeval tv_start, tv_end, tv_diff; do_memcpy_gettimeofday() local
252 BUG_ON(gettimeofday(&tv_end, NULL)); do_memcpy_gettimeofday()
254 timersub(&tv_end, &tv_start, &tv_diff); do_memcpy_gettimeofday()
326 struct timeval tv_start, tv_end, tv_diff; do_memset_gettimeofday() local
342 BUG_ON(gettimeofday(&tv_end, NULL)); do_memset_gettimeofday()
344 timersub(&tv_end, &tv_start, &tv_diff); do_memset_gettimeofday()

Completed in 75 milliseconds