Searched refs:tv_end (Results 1 – 3 of 3) sorted by relevance
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/tools/perf/bench/ |
D | mem-functions.c | 256 struct timeval tv_start, tv_end, tv_diff; in do_memcpy_gettimeofday() local 265 BUG_ON(gettimeofday(&tv_end, NULL)); in do_memcpy_gettimeofday() 267 timersub(&tv_end, &tv_start, &tv_diff); in do_memcpy_gettimeofday() 326 struct timeval tv_start, tv_end, tv_diff; in do_memset_gettimeofday() local 339 BUG_ON(gettimeofday(&tv_end, NULL)); in do_memset_gettimeofday() 341 timersub(&tv_end, &tv_start, &tv_diff); in do_memset_gettimeofday()
|
/kernel/linux/linux-5.10/tools/power/x86/turbostat/ |
D | turbostat.c | 170 struct timeval tv_end; member 1030 timersub(&t->tv_end, &t->tv_begin, &tv); in format_counters() 1036 outp += sprintf(outp, "%10ld.%06ld\t", t->tv_end.tv_sec, t->tv_end.tv_usec); in format_counters() 1440 old->tv_end = new->tv_end; in delta_thread() 1533 t->tv_end.tv_sec = 0; in clear_counters() 1534 t->tv_end.tv_usec = 0; in clear_counters() 1611 average.threads.tv_end = t->tv_end; in sum_counters() 2137 gettimeofday(&t->tv_end, (struct timezone *)NULL); in get_counters()
|