Home
last modified time | relevance | path

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

/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()
223 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/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.cpp974 ASSERT_EQ(0, clock_gettime(CLOCK_REALTIME, &ts)); in TEST()
1002 ASSERT_EQ(0, clock_gettime(CLOCK_REALTIME, &ts)); in TEST()
1005 return pthread_rwlock_clockwrlock(lock, CLOCK_REALTIME, &ts); in TEST()
1041 ASSERT_EQ(0, clock_gettime(CLOCK_REALTIME, &ts)); in TEST()
1069 ASSERT_EQ(0, clock_gettime(CLOCK_REALTIME, &ts)); in TEST()
1072 return pthread_rwlock_clockrdlock(lock, CLOCK_REALTIME, &ts); in TEST()
1127 pthread_rwlock_timedrdlock_timeout_helper(CLOCK_REALTIME, pthread_rwlock_timedrdlock); in TEST()
1153 CLOCK_REALTIME, [](pthread_rwlock_t* __rwlock, const timespec* __timeout) { in TEST()
1154 return pthread_rwlock_clockrdlock(__rwlock, CLOCK_REALTIME, __timeout); in TEST()
1195 pthread_rwlock_timedwrlock_timeout_helper(CLOCK_REALTIME, pthread_rwlock_timedwrlock); in TEST()
[all …]
Dsemaphore_test.cpp137 sem_timedwait_helper(CLOCK_REALTIME, sem_timedwait); in TEST()
153 sem_timedwait_helper(CLOCK_REALTIME, [](sem_t* __sem, const timespec* __ts) { in TEST()
154 return sem_clockwait(__sem, CLOCK_REALTIME, __ts); in TEST()
Dtime_test.cpp441 ASSERT_EQ(0, timer_create(CLOCK_REALTIME, &se, &timer_id)); in Create()
639 ASSERT_EQ(0, timer_create(CLOCK_REALTIME, &se, &tdd.timer_id)); in TEST()
684 ASSERT_EQ(0, clock_gettime(CLOCK_REALTIME, &ts)); in TEST()
716 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/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.cpp504 clock_gettime(CLOCK_REALTIME, &ts); in async_safe_write_log()