Lines Matching refs:tp
72 struct timeval tp, tp1, tp2; variable
93 gettimeofday(&tp, NULL); in main()
94 tp.tv_sec += VAL_SEC; in main()
95 tp.tv_usec += VAL_MSEC; in main()
96 if (tp.tv_usec >= USEC_PER_SEC) in main()
97 tp.tv_usec = VAL_MSEC; in main()
99 TEST(settimeofday(&tp, NULL)); in main()
109 if (tp2.tv_sec > tp.tv_sec) { in main()
111 (suseconds_t) (tp2.tv_sec - tp.tv_sec) * 1000 + in main()
112 (tp2.tv_usec - tp.tv_usec) / 1000; in main()
115 (suseconds_t) (tp.tv_sec - tp2.tv_sec) * 1000 + in main()
116 (tp.tv_usec - tp2.tv_usec) / 1000; in main()
169 if ((gettimeofday(&tp, (struct timezone *)&tp1)) == -1) { in setup()
173 save_tv_sec = tp.tv_sec; in setup()
174 save_tv_usec = tp.tv_usec; in setup()
185 tp.tv_sec = save_tv_sec; in cleanup()
186 tp.tv_usec = save_tv_usec; in cleanup()
187 if ((settimeofday(&tp, NULL)) == -1) { in cleanup()