Lines Matching refs:rt

73     int rt = clock_getres(cid, &time1);

75 EXPECT_EQ(rt, 0) << "clock_getres of " << cname << "failed, errno =" <<errno;
96 int rt = clock_gettime(cid, &time1);
97 if (rt == 0) {
100 LOG("%s return error, rt=%d, errno=%d:%s\n", cname, rt, errno, strerror(errno));
102 EXPECT_EQ(rt, 0);
116 int rt = clock_gettime(CLOCK_REALTIME, &time1);
117 ASSERT_EQ(rt, 0) << "clock_gettime failed, errno=" << errno;
122 rt = clock_settime(CLOCK_REALTIME, &time1);
123 ASSERT_EQ(rt, 0) << "clock_settime failed, errno=" << errno;
125 rt = clock_gettime(CLOCK_REALTIME, &time1);
126 ASSERT_EQ(rt, 0) << "clock_gettime failed, errno=" << errno;
140 int rt = clock_gettime(CLOCK_REALTIME, &ts);
141 ASSERT_EQ(rt, 0) << "clock_gettime failed, errno=" << errno;
144 rt = clock_settime(CLOCK_REALTIME, &ts);
145 ASSERT_EQ(rt, 0) << "clock_settime failed, errno=" << errno;
146 rt = clock_gettime(CLOCK_REALTIME, &ts);
148 EXPECT_EQ(rt, 0) << "clock_gettime failed, errno=" << errno;
165 int rt = clock_gettime(CLOCK_REALTIME, &ts);
167 ASSERT_EQ(rt, 0) << "clock_gettime failed, errno=" << errno;
169 rt = stime(&t);
170 ASSERT_EQ(rt, 0) << "stime failed, errno=" << errno;
172 rt = clock_gettime(CLOCK_REALTIME, &ts);
173 EXPECT_EQ(rt, 0) << "clock_gettime failed, errno=" << errno;
187 int rt = clock_gettime(CLOCK_REALTIME, &ts);
188 ASSERT_EQ(rt, 0) << "clock_gettime failed, errno=" << errno;
189 rt = stime(&ts.tv_sec); // set ts.tv_nsec to 0
190 ASSERT_EQ(rt, 0) << "stime failed, errno=" << errno;
198 rt = stime(&t2);
199 EXPECT_EQ(rt, 0) << "stime failed, errno=" << errno;
208 rt = stime(&ts.tv_sec); // restore time
209 ASSERT_EQ(rt, 0) << "stime failed, errno=" << errno;