Searched refs:CLOCK_REALTIME (Results 1 – 16 of 16) sorted by relevance
/bionic/libc/kernel/uapi/linux/ |
D | time.h | 46 #define CLOCK_REALTIME 0 macro 59 #define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC)
|
/bionic/tests/ |
D | sys_timex_test.cpp | 40 ASSERT_NE(-1, clock_adjtime(CLOCK_REALTIME, &t)); in TEST() 45 ASSERT_EQ(-1, clock_adjtime(CLOCK_REALTIME, nullptr)); in TEST()
|
D | pthread_test.cpp | 1002 ASSERT_EQ(0, clock_gettime(CLOCK_REALTIME, &ts)); in TEST() 1030 ASSERT_EQ(0, clock_gettime(CLOCK_REALTIME, &ts)); in TEST() 1033 return pthread_rwlock_clockwrlock(lock, CLOCK_REALTIME, &ts); in TEST() 1069 ASSERT_EQ(0, clock_gettime(CLOCK_REALTIME, &ts)); in TEST() 1097 ASSERT_EQ(0, clock_gettime(CLOCK_REALTIME, &ts)); in TEST() 1100 return pthread_rwlock_clockrdlock(lock, CLOCK_REALTIME, &ts); in TEST() 1155 pthread_rwlock_timedrdlock_timeout_helper(CLOCK_REALTIME, pthread_rwlock_timedrdlock); in TEST() 1181 CLOCK_REALTIME, [](pthread_rwlock_t* __rwlock, const timespec* __timeout) { in TEST() 1182 return pthread_rwlock_clockrdlock(__rwlock, CLOCK_REALTIME, __timeout); in TEST() 1223 pthread_rwlock_timedwrlock_timeout_helper(CLOCK_REALTIME, pthread_rwlock_timedwrlock); in TEST() [all …]
|
D | semaphore_test.cpp | 141 sem_timedwait_helper(CLOCK_REALTIME, sem_timedwait); in TEST() 157 sem_timedwait_helper(CLOCK_REALTIME, [](sem_t* __sem, const timespec* __ts) { in TEST() 158 return sem_clockwait(__sem, CLOCK_REALTIME, __ts); in TEST()
|
D | time_test.cpp | 683 ASSERT_EQ(0, timer_create(CLOCK_REALTIME, &se, &timer_id)); in Create() 881 ASSERT_EQ(0, timer_create(CLOCK_REALTIME, &se, &tdd.timer_id)); in TEST() 931 ASSERT_EQ(0, clock_gettime(CLOCK_REALTIME, &ts)); in TEST() 963 ASSERT_EQ(0, clock_getres(CLOCK_REALTIME, &ts)); in TEST() 1002 ASSERT_EQ(0, clock_getres(CLOCK_REALTIME, nullptr)); in TEST()
|
/bionic/libc/bionic/ |
D | pthread_cond.cpp | 70 *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()
|
D | timespec_get.cpp | 32 return (base == TIME_UTC && clock_gettime(CLOCK_REALTIME, ts) != -1) ? base : 0; in timespec_get()
|
D | bionic_time_conversions.cpp | 61 clock_gettime(CLOCK_REALTIME, &cur_realtime_time); in monotonic_time_from_realtime_time()
|
D | pthread_rwlock.cpp | 437 case CLOCK_REALTIME: in pthread_rwlock_clockrdlock() 475 case CLOCK_REALTIME: in pthread_rwlock_clockwrlock()
|
D | semaphore.cpp | 282 case CLOCK_REALTIME: in sem_clockwait()
|
D | libc_init_common.cpp | 125 if (timer_create(CLOCK_REALTIME, &event, &timer) == -1) { in __libc_init_mte_late()
|
D | pthread_mutex.cpp | 999 case CLOCK_REALTIME: in pthread_mutex_clocklock()
|
/bionic/benchmarks/ |
D | time_benchmark.cpp | 80 clock_gettime(CLOCK_REALTIME, &t); in BM_time_clock_gettime_REALTIME() 143 clock_getres(CLOCK_REALTIME, &t); in BM_time_clock_getres_REALTIME()
|
/bionic/libc/upstream-netbsd/lib/libc/isc/ |
D | ev_timers.c | 126 #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/ |
D | time_h.c | 71 MACRO(CLOCK_REALTIME); in time_h()
|
/bionic/libc/async_safe/ |
D | async_safe_log.cpp | 533 clock_gettime(CLOCK_REALTIME, &ts); in async_safe_write_log()
|