Home
last modified time | relevance | path

Searched refs:clock_gettime (Results 1 – 25 of 38) sorted by relevance

12

/bionic/benchmarks/
Dtime_benchmark.cpp44 clock_gettime(CLOCK_MONOTONIC, &t); in BM_time_clock_gettime()
62 clock_gettime(CLOCK_MONOTONIC_COARSE, &t); in BM_time_clock_gettime_MONOTONIC_COARSE()
71 clock_gettime(CLOCK_MONOTONIC_RAW, &t); in BM_time_clock_gettime_MONOTONIC_RAW()
80 clock_gettime(CLOCK_REALTIME, &t); in BM_time_clock_gettime_REALTIME()
89 clock_gettime(CLOCK_REALTIME_COARSE, &t); in BM_time_clock_gettime_REALTIME_COARSE()
98 clock_gettime(CLOCK_BOOTTIME, &t); in BM_time_clock_gettime_BOOTTIME()
/bionic/libc/bionic/
Dbionic_time_conversions.cpp59 clock_gettime(CLOCK_MONOTONIC, &cur_monotonic_time); in monotonic_time_from_realtime_time()
61 clock_gettime(CLOCK_REALTIME, &cur_realtime_time); in monotonic_time_from_realtime_time()
Dtimespec_get.cpp32 return (base == TIME_UTC && clock_gettime(CLOCK_REALTIME, ts) != -1) ? base : 0; in timespec_get()
Dclock.cpp38 clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts); in clock()
Dvdso.cpp36 int clock_gettime(int clock_id, timespec* tp) { in clock_gettime() function
37 auto vdso_clock_gettime = reinterpret_cast<decltype(&clock_gettime)>( in clock_gettime()
/bionic/tests/
Dtime_test.cpp909 TEST(time, clock_gettime) { in TEST() argument
914 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts0)); in TEST()
916 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts2)); in TEST()
931 ASSERT_EQ(0, clock_gettime(CLOCK_REALTIME, &ts)); in TEST()
936 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts)); in TEST()
941 ASSERT_EQ(0, clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts)); in TEST()
946 ASSERT_EQ(0, clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts)); in TEST()
951 ASSERT_EQ(0, clock_gettime(CLOCK_BOOTTIME, &ts)); in TEST()
957 ASSERT_EQ(-1, clock_gettime(-1, &ts)); in TEST()
1028 ASSERT_EQ(0, clock_gettime(clockid, &ts)); in TEST()
[all …]
Dpthread_test.cpp615 ASSERT_EQ(0, clock_gettime(c, &ts)); in TEST()
1002 ASSERT_EQ(0, clock_gettime(CLOCK_REALTIME, &ts)); in TEST()
1012 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts)); in TEST()
1024 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts)); in TEST()
1030 ASSERT_EQ(0, clock_gettime(CLOCK_REALTIME, &ts)); in TEST()
1069 ASSERT_EQ(0, clock_gettime(CLOCK_REALTIME, &ts)); in TEST()
1079 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts)); in TEST()
1091 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts)); in TEST()
1097 ASSERT_EQ(0, clock_gettime(CLOCK_REALTIME, &ts)); in TEST()
1115 ASSERT_EQ(0, clock_gettime(arg->clock, &ts)); in pthread_rwlock_wakeup_timeout_helper()
[all …]
Dsemaphore_test.cpp114 ASSERT_EQ(0, clock_gettime(clock, &ts)); in sem_timedwait_helper()
/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/private/
Dbionic_time_conversions.h67 clock_gettime(clock, &abs_ts); in absolute_timespec_from_timespec()
/bionic/benchmarks/linker_relocation/gen/
Dliblinker_reloc_bench_125.S99 CALL(clock_gettime)
Dliblinker_reloc_bench_027.S277 CALL(clock_gettime)
Dliblinker_reloc_bench_008.S303 CALL(clock_gettime)
Dliblinker_reloc_bench_100.S1049 CALL(clock_gettime)
Dliblinker_reloc_bench_003.S1090 CALL(clock_gettime)
Dliblinker_reloc_bench_095.S123 CALL(clock_gettime)
Dliblinker_reloc_bench_098.S1588 CALL(clock_gettime)
Dliblinker_reloc_bench_135.S507 CALL(clock_gettime)
/bionic/tests/headers/posix/
Dtime_h.c81 FUNCTION(clock_gettime, int (*f)(clockid_t, struct timespec*)); in time_h()
/bionic/libc/include/
Dtime.h94 int clock_gettime(clockid_t __clock, struct timespec* _Nonnull __ts);
/bionic/libc/upstream-netbsd/lib/libc/isc/
Dev_timers.c136 if (clock_gettime(m, &tsnow) == 0) in evNowTime()
149 if (clock_gettime(CLOCK_REALTIME, &tsnow) == 0) in evUTCTime()
/bionic/libc/async_safe/
Dasync_safe_log.cpp533 clock_gettime(CLOCK_REALTIME, &ts); in async_safe_write_log()
/bionic/libc/tools/
Dposix-2013.txt114 clock_gettime
/bionic/libc/malloc_debug/
Dmalloc_debug.cpp74 clock_gettime(CLOCK_MONOTONIC, &t); in Nanotime()
/bionic/libc/
DSYSCALLS.TXT366 int __clock_gettime:clock_gettime(clockid_t, struct timespec*) all

12