Lines Matching refs:tp
71 struct timeval tp, tp1, tp2; variable
92 gettimeofday(&tp, NULL); in main()
93 tp.tv_sec += VAL_SEC; in main()
94 tp.tv_usec += VAL_MSEC; in main()
96 TEST(settimeofday(&tp, NULL)); in main()
106 if (tp2.tv_sec > tp.tv_sec) { in main()
108 (suseconds_t) (tp2.tv_sec - tp.tv_sec) * 1000 + in main()
109 (tp2.tv_usec - tp.tv_usec) / 1000; in main()
112 (suseconds_t) (tp.tv_sec - tp2.tv_sec) * 1000 + in main()
113 (tp.tv_usec - tp2.tv_usec) / 1000; in main()
166 if ((gettimeofday(&tp, (struct timezone *)&tp1)) == -1) { in setup()
170 save_tv_sec = tp.tv_sec; in setup()
171 save_tv_usec = tp.tv_usec; in setup()
182 tp.tv_sec = save_tv_sec; in cleanup()
183 tp.tv_usec = save_tv_usec; in cleanup()
184 if ((settimeofday(&tp, NULL)) == -1) { in cleanup()