Lines Matching defs:time1
48 struct timespec time1 = {0, 0};
49 clock_gettime(CLOCK_REALTIME, &time1);
50 LOG("test end at %ld", (long)time1.tv_sec);
72 struct timespec time1 = {0, 0};
73 int rt = clock_getres(cid, &time1);
74 LOG("%s Resolution: %ld nanosecond\n", cname, time1.tv_nsec);
77 EXPECT_EQ(time1.tv_sec, 0);
79 EXPECT_EQ(time1.tv_nsec, CLOCK_RESOLUTION_HIGH) << "Resolution check failed";
81 EXPECT_EQ(time1.tv_nsec, CLOCK_RESOLUTION_LOW) << "Resolution check failed";
95 struct timespec time1 = {0, 0};
96 int rt = clock_gettime(cid, &time1);
98 LOG("clock_gettime(%s) : tv_sec=%ld, tv_nsec=%ld\n", cname, time1.tv_sec, time1.tv_nsec);
115 struct timespec time1 = {0, 0};
116 int rt = clock_gettime(CLOCK_REALTIME, &time1);
118 LOG("current time: sec=%llu, nsec=%ld", time1.tv_sec, time1.tv_nsec);
119 time_t sec = time1.tv_sec;
120 time1.tv_sec -= 1;
121 time1.tv_nsec = 1;
122 rt = clock_settime(CLOCK_REALTIME, &time1);
125 rt = clock_gettime(CLOCK_REALTIME, &time1);
127 ASSERT_EQ(sec, time1.tv_sec);