Lines Matching refs:tv_nsec
356 (middle.tv_nsec - start.tv_nsec); \
357 send_total.tv_nsec += nsec; \
358 if (send_total.tv_nsec >= 1000000000) { \
360 send_total.tv_nsec -= 1000000000; \
363 (end.tv_nsec - middle.tv_nsec); \
364 recv_total.tv_nsec += nsec; \
365 if (recv_total.tv_nsec >= 1000000000) { \
367 recv_total.tv_nsec -= 1000000000; \
446 printf("\t\tClock resolution:\t\t%lu nsec%s\n", res.tv_nsec, in perf_test_thread()
447 res.tv_nsec > 1 ? "s" : ""); in perf_test_thread()
455 send_total.tv_nsec = 0; in perf_test_thread()
457 recv_total.tv_nsec = 0; in perf_test_thread()
461 send_total.tv_sec, send_total.tv_nsec); in perf_test_thread()
463 send_total.tv_nsec) / TEST1_LOOPS; in perf_test_thread()
466 recv_total.tv_sec, recv_total.tv_nsec); in perf_test_thread()
468 recv_total.tv_nsec) / TEST1_LOOPS; in perf_test_thread()
477 send_total.tv_nsec = 0; in perf_test_thread()
479 recv_total.tv_nsec = 0; in perf_test_thread()
489 1000000000) + (end.tv_nsec - start.tv_nsec); in perf_test_thread()
500 send_total.tv_sec, send_total.tv_nsec); in perf_test_thread()
502 send_total.tv_nsec) / TEST2_LOOPS; in perf_test_thread()
505 recv_total.tv_sec, recv_total.tv_nsec); in perf_test_thread()
507 recv_total.tv_nsec) / TEST2_LOOPS; in perf_test_thread()
515 1000000000) + (end.tv_nsec - start.tv_nsec); in perf_test_thread()