Home
last modified time | relevance | path

Searched refs:CLOCK_REALTIME (Results 1 – 14 of 14) sorted by relevance

/bionic/tests/
Dsys_timex_test.cpp40 ASSERT_NE(-1, clock_adjtime(CLOCK_REALTIME, &t)); in TEST()
45 ASSERT_EQ(-1, clock_adjtime(CLOCK_REALTIME, nullptr)); in TEST()
Dpthread_test.cpp973 ASSERT_EQ(0, clock_gettime(CLOCK_REALTIME, &ts)); in TEST()
1001 ASSERT_EQ(0, clock_gettime(CLOCK_REALTIME, &ts)); in TEST()
1004 return pthread_rwlock_clockwrlock(lock, CLOCK_REALTIME, &ts); in TEST()
1040 ASSERT_EQ(0, clock_gettime(CLOCK_REALTIME, &ts)); in TEST()
1068 ASSERT_EQ(0, clock_gettime(CLOCK_REALTIME, &ts)); in TEST()
1071 return pthread_rwlock_clockrdlock(lock, CLOCK_REALTIME, &ts); in TEST()
1126 pthread_rwlock_timedrdlock_timeout_helper(CLOCK_REALTIME, pthread_rwlock_timedrdlock); in TEST()
1152 CLOCK_REALTIME, [](pthread_rwlock_t* __rwlock, const timespec* __timeout) { in TEST()
1153 return pthread_rwlock_clockrdlock(__rwlock, CLOCK_REALTIME, __timeout); in TEST()
1194 pthread_rwlock_timedwrlock_timeout_helper(CLOCK_REALTIME, pthread_rwlock_timedwrlock); in TEST()
[all …]
Dtime_test.cpp538 ASSERT_EQ(0, timer_create(CLOCK_REALTIME, &se, &timer_id)); in Create()
736 ASSERT_EQ(0, timer_create(CLOCK_REALTIME, &se, &tdd.timer_id)); in TEST()
781 ASSERT_EQ(0, clock_gettime(CLOCK_REALTIME, &ts)); in TEST()
813 ASSERT_EQ(0, clock_getres(CLOCK_REALTIME, &ts)); in TEST()
/bionic/libc/kernel/uapi/linux/
Dtime.h49 #define CLOCK_REALTIME 0 macro
62 #define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC)
/bionic/libc/bionic/
Dpthread_cond.cpp70 *attr |= (CLOCK_REALTIME << 1); in pthread_condattr_init()
94 if (clock != CLOCK_MONOTONIC && clock != CLOCK_REALTIME) { in pthread_condattr_setclock()
115 return COND_GET_CLOCK(atomic_load_explicit(&state, memory_order_relaxed)) == CLOCK_REALTIME; in use_realtime_clock()
244 case CLOCK_REALTIME: in pthread_cond_clockwait()
Dtimespec_get.cpp32 return (base == TIME_UTC && clock_gettime(CLOCK_REALTIME, ts) != -1) ? base : 0; in timespec_get()
Dbionic_time_conversions.cpp61 clock_gettime(CLOCK_REALTIME, &cur_realtime_time); in monotonic_time_from_realtime_time()
Dpthread_rwlock.cpp437 case CLOCK_REALTIME: in pthread_rwlock_clockrdlock()
475 case CLOCK_REALTIME: in pthread_rwlock_clockwrlock()
Dsemaphore.cpp282 case CLOCK_REALTIME: in sem_clockwait()
Dpthread_mutex.cpp997 case CLOCK_REALTIME: in pthread_mutex_clocklock()
/bionic/benchmarks/
Dtime_benchmark.cpp65 clock_gettime(CLOCK_REALTIME, &t); in BM_time_clock_gettime_REALTIME()
128 clock_getres(CLOCK_REALTIME, &t); in BM_time_clock_getres_REALTIME()
/bionic/libc/upstream-netbsd/lib/libc/isc/
Dev_timers.c126 #ifdef CLOCK_REALTIME in evNowTime()
128 int m = CLOCK_REALTIME; in evNowTime()
147 #ifdef CLOCK_REALTIME in evUTCTime()
149 if (clock_gettime(CLOCK_REALTIME, &tsnow) == 0) in evUTCTime()
/bionic/tests/headers/posix/
Dtime_h.c71 MACRO(CLOCK_REALTIME); in time_h()
/bionic/libc/async_safe/
Dasync_safe_log.cpp515 clock_gettime(CLOCK_REALTIME, &ts); in async_safe_write_log()