Searched refs:tv_start (Results 1 - 2 of 2) sorted by relevance
/linux-4.4.14/tools/testing/selftests/powerpc/benchmarks/ |
H A D | gettimeofday.c | 15 struct timeval tv_start, tv_end; test_gettimeofday() local 17 gettimeofday(&tv_start, 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 D | mem-functions.c | 236 struct timeval tv_start, tv_end, tv_diff; do_memcpy_gettimeofday() local 249 BUG_ON(gettimeofday(&tv_start, 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 339 BUG_ON(gettimeofday(&tv_start, NULL)); do_memset_gettimeofday() 344 timersub(&tv_end, &tv_start, &tv_diff); do_memset_gettimeofday()
|
Completed in 35 milliseconds