Searched refs:CLOCK_MONOTONIC (Results 1 – 13 of 13) sorted by relevance
/bionic/libc/kernel/uapi/linux/ |
D | time.h | 50 #define CLOCK_MONOTONIC 1 macro 62 #define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC) 63 #define CLOCKS_MONO CLOCK_MONOTONIC
|
/bionic/benchmarks/ |
D | time_benchmark.cpp | 29 clock_gettime(CLOCK_MONOTONIC, &t); in BM_time_clock_gettime() 38 syscall(__NR_clock_gettime, CLOCK_MONOTONIC, &t); in BM_time_clock_gettime_syscall() 92 clock_getres(CLOCK_MONOTONIC, &t); in BM_time_clock_getres() 101 syscall(__NR_clock_getres, CLOCK_MONOTONIC, &t); in BM_time_clock_getres_syscall()
|
/bionic/tests/ |
D | pthread_test.cpp | 984 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts)); in TEST() 996 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts)); in TEST() 999 return pthread_rwlock_clockwrlock(lock, CLOCK_MONOTONIC, &ts); in TEST() 1051 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts)); in TEST() 1063 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts)); in TEST() 1066 return pthread_rwlock_clockrdlock(lock, CLOCK_MONOTONIC, &ts); in TEST() 1132 pthread_rwlock_timedrdlock_timeout_helper(CLOCK_MONOTONIC, in TEST() 1142 CLOCK_MONOTONIC, [](pthread_rwlock_t* __rwlock, const timespec* __timeout) { in TEST() 1143 return pthread_rwlock_clockrdlock(__rwlock, CLOCK_MONOTONIC, __timeout); in TEST() 1200 pthread_rwlock_timedwrlock_timeout_helper(CLOCK_MONOTONIC, in TEST() [all …]
|
D | semaphore_test.cpp | 142 sem_timedwait_helper(CLOCK_MONOTONIC, sem_timedwait_monotonic_np); in TEST() 150 sem_timedwait_helper(CLOCK_MONOTONIC, [](sem_t* __sem, const timespec* __ts) { in TEST() 151 return sem_clockwait(__sem, CLOCK_MONOTONIC, __ts); in TEST()
|
D | time_test.cpp | 384 ASSERT_EQ(0, timer_create(CLOCK_MONOTONIC, &se, &timer_id)); in TEST() 414 ASSERT_EQ(0, timer_create(CLOCK_MONOTONIC, &se, &timer_id)); in TEST() 528 ASSERT_EQ(0, timer_create(CLOCK_MONOTONIC, nullptr, &timer_id)); in TEST() 665 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts1)); in TEST() 667 ASSERT_EQ(0, syscall(__NR_clock_gettime, CLOCK_MONOTONIC, &ts2)); in TEST() 689 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts)); in TEST() 723 ASSERT_EQ(0, clock_getres(CLOCK_MONOTONIC, &ts)); in TEST() 820 ASSERT_EQ(0, clock_nanosleep(CLOCK_MONOTONIC, 0, &ts, nullptr)); in TEST()
|
/bionic/libc/bionic/ |
D | pthread_cond.cpp | 94 if (clock != CLOCK_MONOTONIC && clock != CLOCK_REALTIME) { in pthread_condattr_setclock() 221 case CLOCK_MONOTONIC: in pthread_cond_clockwait() 246 absolute_timespec_from_timespec(ts, *rel_timeout, CLOCK_MONOTONIC); in pthread_cond_timedwait_relative_np()
|
D | bionic_time_conversions.cpp | 59 clock_gettime(CLOCK_MONOTONIC, &cur_monotonic_time); in monotonic_time_from_realtime_time()
|
D | pthread_rwlock.cpp | 435 case CLOCK_MONOTONIC: in pthread_rwlock_clockrdlock() 473 case CLOCK_MONOTONIC: in pthread_rwlock_clockwrlock()
|
D | semaphore.cpp | 280 case CLOCK_MONOTONIC: in sem_clockwait()
|
D | pthread_mutex.cpp | 952 absolute_timespec_from_timespec(abs_timeout, ts, CLOCK_MONOTONIC); in pthread_mutex_lock_timeout_np() 995 case CLOCK_MONOTONIC: in pthread_mutex_clocklock()
|
/bionic/libc/upstream-openbsd/lib/libc/net/ |
D | res_random.c | 222 clock_gettime(CLOCK_MONOTONIC, &ts); in res_initid() 235 clock_gettime(CLOCK_MONOTONIC, &ts); in __res_randomid()
|
/bionic/tests/headers/posix/ |
D | time_h.c | 69 MACRO(CLOCK_MONOTONIC); in time_h()
|
/bionic/libc/upstream-netbsd/lib/libc/isc/ |
D | ev_timers.c | 130 #ifdef CLOCK_MONOTONIC in evNowTime() 133 m = CLOCK_MONOTONIC; in evNowTime()
|