Searched refs:tv_end (Results 1 – 3 of 3) sorted by relevance
/Linux-v4.19/tools/testing/selftests/powerpc/benchmarks/ |
D | gettimeofday.c | 15 struct timeval tv_start, tv_end; in test_gettimeofday() local 20 gettimeofday(&tv_end, NULL); in test_gettimeofday() 23 …printf("time = %.6f\n", tv_end.tv_sec - tv_start.tv_sec + (tv_end.tv_usec - tv_start.tv_usec) * 1e… in test_gettimeofday()
|
/Linux-v4.19/tools/perf/bench/ |
D | mem-functions.c | 250 struct timeval tv_start, tv_end, tv_diff; in do_memcpy_gettimeofday() local 263 BUG_ON(gettimeofday(&tv_end, NULL)); in do_memcpy_gettimeofday() 265 timersub(&tv_end, &tv_start, &tv_diff); in do_memcpy_gettimeofday() 324 struct timeval tv_start, tv_end, tv_diff; in do_memset_gettimeofday() local 337 BUG_ON(gettimeofday(&tv_end, NULL)); in do_memset_gettimeofday() 339 timersub(&tv_end, &tv_start, &tv_diff); in do_memset_gettimeofday()
|
/Linux-v4.19/tools/power/x86/turbostat/ |
D | turbostat.c | 166 struct timeval tv_end; member 889 timersub(&t->tv_end, &t->tv_begin, &tv); in format_counters() 895 outp += sprintf(outp, "%10ld.%06ld\t", t->tv_end.tv_sec, t->tv_end.tv_usec); in format_counters() 1281 old->tv_end = new->tv_end; in delta_thread() 1373 t->tv_end.tv_sec = 0; in clear_counters() 1374 t->tv_end.tv_usec = 0; in clear_counters() 1447 average.threads.tv_end = t->tv_end; in sum_counters() 1931 gettimeofday(&t->tv_end, (struct timezone *)NULL); in get_counters()
|