Home
last modified time | relevance | path

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

/bionic/libc/kernel/uapi/linux/
Dtime.h35 #define CLOCK_MONOTONIC 1 macro
47 #define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC)
48 #define CLOCKS_MONO CLOCK_MONOTONIC
/bionic/benchmarks/
Dtime_benchmark.cpp44 clock_gettime(CLOCK_MONOTONIC, &t); in BM_time_clock_gettime()
53 syscall(__NR_clock_gettime, CLOCK_MONOTONIC, &t); in BM_time_clock_gettime_syscall()
107 clock_getres(CLOCK_MONOTONIC, &t); in BM_time_clock_getres()
116 syscall(__NR_clock_getres, CLOCK_MONOTONIC, &t); in BM_time_clock_getres_syscall()
/bionic/libc/bionic/
Dbionic_time_conversions.cpp78 convert_timespec_clocks(monotonic_time, CLOCK_MONOTONIC, realtime_time, CLOCK_REALTIME); in monotonic_time_from_realtime_time()
82 convert_timespec_clocks(realtime_time, CLOCK_REALTIME, monotonic_time, CLOCK_MONOTONIC); in realtime_time_from_monotonic_time()
Dpthread_cond.cpp94 if (clock != CLOCK_MONOTONIC && clock != CLOCK_REALTIME) { in pthread_condattr_setclock()
242 case CLOCK_MONOTONIC: in pthread_cond_clockwait()
270 absolute_timespec_from_timespec(ts, *rel_timeout, CLOCK_MONOTONIC); in pthread_cond_timedwait_relative_np()
Dpthread_rwlock.cpp436 case CLOCK_MONOTONIC: in pthread_rwlock_clockrdlock()
474 case CLOCK_MONOTONIC: in pthread_rwlock_clockwrlock()
Dsemaphore.cpp280 case CLOCK_MONOTONIC: in sem_clockwait()
Dpthread_mutex.cpp954 absolute_timespec_from_timespec(abs_timeout, ts, CLOCK_MONOTONIC); in pthread_mutex_lock_timeout_np()
997 case CLOCK_MONOTONIC: in pthread_mutex_clocklock()
/bionic/tests/
Dpthread_test.cpp1013 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts)); in TEST()
1025 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts)); in TEST()
1028 return pthread_rwlock_clockwrlock(lock, CLOCK_MONOTONIC, &ts); in TEST()
1080 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts)); in TEST()
1092 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts)); in TEST()
1095 return pthread_rwlock_clockrdlock(lock, CLOCK_MONOTONIC, &ts); in TEST()
1161 pthread_rwlock_timedrdlock_timeout_helper(CLOCK_MONOTONIC, in TEST()
1171 CLOCK_MONOTONIC, [](pthread_rwlock_t* __rwlock, const timespec* __timeout) { in TEST()
1172 return pthread_rwlock_clockrdlock(__rwlock, CLOCK_MONOTONIC, __timeout); in TEST()
1229 pthread_rwlock_timedwrlock_timeout_helper(CLOCK_MONOTONIC, in TEST()
[all …]
Dsemaphore_test.cpp148 sem_timedwait_helper(CLOCK_MONOTONIC, sem_timedwait_monotonic_np); in TEST()
156 sem_timedwait_helper(CLOCK_MONOTONIC, [](sem_t* __sem, const timespec* __ts) { in TEST()
157 return sem_clockwait(__sem, CLOCK_MONOTONIC, __ts); in TEST()
Dtime_test.cpp645 ASSERT_EQ(0, timer_create(CLOCK_MONOTONIC, &se, &timer_id)); in TEST()
675 ASSERT_EQ(0, timer_create(CLOCK_MONOTONIC, &se, &timer_id)); in TEST()
789 ASSERT_EQ(0, timer_create(CLOCK_MONOTONIC, nullptr, &timer_id)); in TEST()
953 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts0)); in TEST()
954 ASSERT_EQ(0, syscall(__NR_clock_gettime, CLOCK_MONOTONIC, &ts1)); in TEST()
955 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts2)); in TEST()
975 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts)); in TEST()
1009 ASSERT_EQ(0, clock_getres(CLOCK_MONOTONIC, &ts)); in TEST()
1114 ASSERT_EQ(0, clock_nanosleep(CLOCK_MONOTONIC, 0, &ts, nullptr)); in TEST()
/bionic/libc/upstream-openbsd/lib/libc/net/
Dres_random.c222 clock_gettime(CLOCK_MONOTONIC, &ts); in res_initid()
235 clock_gettime(CLOCK_MONOTONIC, &ts); in __res_randomid()
/bionic/tests/headers/posix/
Dtime_h.c69 MACRO(CLOCK_MONOTONIC); in time_h()
/bionic/libc/include/
Dtime.h438 #define TIME_MONOTONIC (CLOCK_MONOTONIC+1)
/bionic/libc/upstream-netbsd/lib/libc/isc/
Dev_timers.c130 #ifdef CLOCK_MONOTONIC in evNowTime()
133 m = CLOCK_MONOTONIC; in evNowTime()
/bionic/libc/malloc_debug/
Dmalloc_debug.cpp75 clock_gettime(CLOCK_MONOTONIC, &t); in Nanotime()