Home
last modified time | relevance | path

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

/bionic/libc/kernel/uapi/linux/
Dtime.h56 #define CLOCK_MONOTONIC 1 macro
71 #define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC)
72 #define CLOCKS_MONO CLOCK_MONOTONIC
/bionic/benchmarks/
Dtime_benchmark.cpp27 clock_gettime(CLOCK_MONOTONIC, &t); in BM_time_clock_gettime()
35 syscall(__NR_clock_gettime, CLOCK_MONOTONIC, &t); in BM_time_clock_gettime_syscall()
/bionic/tests/
Dtime_test.cpp214 ASSERT_EQ(0, timer_create(CLOCK_MONOTONIC, &se, &timer_id)); in TEST()
244 ASSERT_EQ(0, timer_create(CLOCK_MONOTONIC, &se, &timer_id)); in TEST()
358 ASSERT_EQ(0, timer_create(CLOCK_MONOTONIC, NULL, &timer_id)); in TEST()
390 ASSERT_EQ(0, timer_create(CLOCK_MONOTONIC, NULL, &timer_id)); in TEST()
399 ASSERT_EQ(0, timer_create(CLOCK_MONOTONIC, &se, &timer_id)); in TEST()
511 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts1)); in TEST()
513 ASSERT_EQ(0, syscall(__NR_clock_gettime, CLOCK_MONOTONIC, &ts2)); in TEST()
Dpthread_test.cpp1083 ASSERT_EQ(0, pthread_condattr_setclock(&attr, CLOCK_MONOTONIC)); in TEST()
1085 ASSERT_EQ(CLOCK_MONOTONIC, clock); in TEST()
1095 ASSERT_EQ(0, pthread_condattr_setclock(&attr, CLOCK_MONOTONIC)); in TEST()
1107 ASSERT_EQ(CLOCK_MONOTONIC, clock); in TEST()
1205 InitCond(CLOCK_MONOTONIC); in TEST_F()
1207 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts)); in TEST_F()
Dsignal_test.cpp355 clock_gettime(CLOCK_MONOTONIC, &t); in NanoTime()
/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/libc/bionic/
Dpthread_cond.cpp94 if (clock != CLOCK_MONOTONIC && clock != CLOCK_REALTIME) { in pthread_condattr_setclock()
235 absolute_timespec_from_timespec(ts, *rel_timeout, CLOCK_MONOTONIC); in pthread_cond_timedwait_relative_np()
Dgetentropy_linux.c321 #ifdef CLOCK_MONOTONIC
322 CLOCK_MONOTONIC,
Dpthread_mutex.cpp619 absolute_timespec_from_timespec(abs_timeout, ts, CLOCK_MONOTONIC); in pthread_mutex_lock_timeout_np()
Dlibc_logging.cpp543 return (tolower(c) == 'm') ? CLOCK_MONOTONIC : CLOCK_REALTIME; in __android_log_clockid()
/bionic/libc/upstream-netbsd/lib/libc/isc/
Dev_timers.c130 #ifdef CLOCK_MONOTONIC in evNowTime()
133 m = CLOCK_MONOTONIC; in evNowTime()