Searched refs:tv_now (Results 1 – 2 of 2) sorted by relevance
/linux/tools/testing/selftests/powerpc/benchmarks/ |
H A D | null_syscall.c | 133 struct timespec tv_start, tv_now; in main() local 143 clock_gettime(CLOCK_MONOTONIC, &tv_now); in main() 146 elapsed_ns = (tv_now.tv_sec - tv_start.tv_sec) * 1000000000ULL + in main() 147 (tv_now.tv_nsec - tv_start.tv_nsec); in main()
|
/linux/tools/testing/selftests/bpf/ |
H A D | xskxceiver.c | 1262 struct timeval tv_end, tv_now, tv_timeout = {THREAD_TMOUT, 0}; in receive_pkts() local 1268 ret = gettimeofday(&tv_now, NULL); in receive_pkts() 1272 timeradd(&tv_now, &tv_timeout, &tv_end); in receive_pkts() 1284 ret = gettimeofday(&tv_now, NULL); in receive_pkts() 1288 if (timercmp(&tv_now, &tv_end, >)) { in receive_pkts() 1424 struct timeval tv_end, tv_now, tv_timeout = {THREAD_TMOUT, 0}; in wait_for_tx_completion() local 1427 ret = gettimeofday(&tv_now, NULL); in wait_for_tx_completion() 1430 timeradd(&tv_now, &tv_timeout, &tv_end); in wait_for_tx_completion() 1433 ret = gettimeofday(&tv_now, NULL); in wait_for_tx_completion() 1436 if (timercmp(&tv_now, &tv_end, >)) { in wait_for_tx_completion()
|