Lines Matching refs:clock_gettime
909 TEST(time, clock_gettime) { in TEST() argument
914 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts0)); in TEST()
916 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts2)); in TEST()
931 ASSERT_EQ(0, clock_gettime(CLOCK_REALTIME, &ts)); in TEST()
936 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts)); in TEST()
941 ASSERT_EQ(0, clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts)); in TEST()
946 ASSERT_EQ(0, clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts)); in TEST()
951 ASSERT_EQ(0, clock_gettime(CLOCK_BOOTTIME, &ts)); in TEST()
957 ASSERT_EQ(-1, clock_gettime(-1, &ts)); in TEST()
1028 ASSERT_EQ(0, clock_gettime(clockid, &ts)); in TEST()
1035 ASSERT_EQ(0, clock_gettime(clockid, &ts)); in TEST()