Lines Matching refs:time
16 #include <time.h>
52 mTestStatTime.tv_sec += 10; // approximate total test time
54 LOG("restore time ok\n");
56 LOG("restore time failed\n");
118 LOG("current time: sec=%llu, nsec=%ld", time1.tv_sec, time1.tv_nsec);
150 LOG("current time: sec=%llu, nsec=%ld", ts.tv_sec, (long)ts.tv_nsec);
151 LOG("current time: sec=%llu, millitm=%d", tb.time, (int)tb.millitm);
152 EXPECT_EQ(ts.tv_sec, tb.time);
166 LOG("current time: sec=%llu, nsec=%ld", ts.tv_sec, (long)ts.tv_nsec);
174 LOG("current time: sec=%llu, nsec=%ld", ts.tv_sec, (long)ts.tv_nsec);
180 * @tc.name test time basic
193 t1 = time(&t2);
194 EXPECT_EQ(t1, ts.tv_sec) << "time failed";
195 EXPECT_EQ(t1, t2) << "time failed";
201 t1 = time(&t2);
205 t1 = time(nullptr);
208 rt = stime(&ts.tv_sec); // restore time
320 time(&tStart);
322 time(&tEnd);
349 time(&tStart);
351 time(&tEnd);