Lines Matching refs:tvalStart
266 struct timeval tvalStart = {0};
270 int ret1 = gettimeofday(&tvalStart, &tzone);
275 EXPECT_TRUE((tvalEnd.tv_sec - tvalStart.tv_sec) >= sleepSec)
276 << "check end-start>=1 fail, start[" << tvalStart.tv_sec << "],end[" << tvalEnd.tv_sec << "]";
277 EXPECT_TRUE((tvalEnd.tv_sec - tvalStart.tv_sec) < sleepSec+1)
278 << "check end-start<2 fail, start[" << tvalStart.tv_sec << "],end[" << tvalEnd.tv_sec << "]";
289 struct timeval tvalStart = {0};
294 int ret2 = gettimeofday(&tvalStart, NULL);
300 EXPECT_EQ(setSec, tvalStart.tv_sec)
301 << "settimeofday set[" << setSec << "],get[" << tvalStart.tv_sec << "]";
302 EXPECT_TRUE((tvalEnd.tv_sec - tvalStart.tv_sec) >= sleepSec)
303 << "check end-start>=2 fail, start[" << tvalStart.tv_sec << "],end[" << tvalEnd.tv_sec << "]";
304 EXPECT_TRUE((tvalEnd.tv_sec - tvalStart.tv_sec) < sleepSec+1)
305 << "check end-start<3 fail, start[" << tvalStart.tv_sec << "],end[" << tvalEnd.tv_sec << "]";