Home
last modified time | relevance | path

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

12

/system/media/audio_utils/include/audio_utils/
Dclock_nanosleep.h42 #ifndef CLOCK_MONOTONIC
44 #define CLOCK_MONOTONIC 0 macro
/system/memory/libdmabufheap/tests/
Ddmabuf_heap_bench.c153 clock_gettime(CLOCK_MONOTONIC, &ts_start); in ion_heap_bench()
159 clock_gettime(CLOCK_MONOTONIC, &ts_end); in ion_heap_bench()
180 clock_gettime(CLOCK_MONOTONIC, &ts_start); in dmabuf_heap_bench()
186 clock_gettime(CLOCK_MONOTONIC, &ts_end); in dmabuf_heap_bench()
/system/core/libutils/include/utils/
DCondition.h103 pthread_condattr_setclock(&attr, CLOCK_MONOTONIC); in Condition()
123 clock_gettime(CLOCK_MONOTONIC, &ts); in waitRelative()
/system/extras/tests/lib/testUtil/
DtestUtil.c268 clock_gettime(CLOCK_MONOTONIC, &start); in testDelay()
272 clock_gettime(CLOCK_MONOTONIC, &current); in testDelay()
293 clock_gettime(CLOCK_MONOTONIC, &start); in testDelaySpin()
297 clock_gettime(CLOCK_MONOTONIC, &current); in testDelaySpin()
/system/logging/liblog/tests/
Dlog_time_test.cpp25 clock_gettime(CLOCK_MONOTONIC, &ts); in TEST()
Dliblog_benchmark.cpp115 do_clock_overhead(state, CLOCK_MONOTONIC); in BM_time_clock_gettime_MONOTONIC()
122 syscall(__NR_clock_gettime, CLOCK_MONOTONIC, &t); in BM_time_clock_gettime_MONOTONIC_syscall()
140 clock_getres(CLOCK_MONOTONIC, &t); in BM_time_clock_getres_MONOTONIC()
148 syscall(__NR_clock_getres, CLOCK_MONOTONIC, &t); in BM_time_clock_getres_MONOTONIC_syscall()
933 log_time now(CLOCK_MONOTONIC); in BM_lookupEventTagNum_logd_new()
Dliblog_test.cpp218 log_time ts(CLOCK_MONOTONIC); in TEST()
248 ts1 = log_time(CLOCK_MONOTONIC); in TEST()
302 clock_gettime(CLOCK_MONOTONIC, &ts); in TEST()
518 signal_time = log_time(CLOCK_MONOTONIC); in caught_blocking_signal()
627 } while (!signaled || (log_time(CLOCK_MONOTONIC) < signal_time)); in TEST()
677 signal_time = log_time(CLOCK_MONOTONIC); in running_thread()
781 } while (!signaled || (log_time(CLOCK_MONOTONIC) < signal_time)); in TEST()
1568 log_time ts(CLOCK_MONOTONIC); in TEST()
1591 ts = log_time(CLOCK_MONOTONIC); in TEST()
1609 ts = log_time(CLOCK_MONOTONIC); in TEST()
[all …]
/system/extras/tests/timetest/
Dtimetest.c17 if(clock_gettime(CLOCK_MONOTONIC, &t)) { in nanotime()
64 int clock_id = CLOCK_MONOTONIC; in main()
/system/extras/memory_replay/
DUtils.h24 clock_gettime(CLOCK_MONOTONIC, &t); in Nanotime()
/system/chre/platform/linux/
Dsystem_time.cc39 if (clock_gettime(CLOCK_MONOTONIC, &timeNow)) { in getMonotonicTime()
Dsystem_timer.cc67 int ret = timer_create(CLOCK_MONOTONIC, &sigevt, &mTimerId); in init()
/system/extras/simpleperf/runtest/
Drun_and_sleep.cpp11 clock_gettime(CLOCK_MONOTONIC, &ts); in GetSystemClock()
/system/core/libutils/
DTimers.cpp35 static constexpr clockid_t clocks[] = {CLOCK_REALTIME, CLOCK_MONOTONIC, in systemTime()
/system/extras/tests/pftest/
Dpftest.c41 clock_gettime(CLOCK_MONOTONIC, &t); in stop_watch()
/system/memory/lmkd/
Dwatchdog.cpp116 if (timer_create(CLOCK_MONOTONIC, &sevent, &timer_)) { in create_timer()
/system/core/fastboot/
Dutil.cpp47 clock_gettime(CLOCK_MONOTONIC, &ts); in now()
/system/logging/logd/
DLogKlog.cpp198 log_time LogKlog::correction = (log_time(CLOCK_REALTIME) < log_time(CLOCK_MONOTONIC))
200 : (log_time(CLOCK_REALTIME) - log_time(CLOCK_MONOTONIC));
205 signature(CLOCK_MONOTONIC), in LogKlog()
343 log_time mono(CLOCK_MONOTONIC); in sniffTime()
/system/connectivity/wificond/tests/
Dshell_utils.cpp52 clock_gettime(CLOCK_MONOTONIC, &ts); in GetCurrentTimeMs()
/system/extras/simpleperf/demo/SimpleperfExampleCpp/app/src/main/cpp/
Dnative-lib.cpp63 clock_gettime(CLOCK_MONOTONIC, &ts); in GetSystemClock()
/system/extras/memtrack/
Dmemtrack.cpp346 clock_gettime(CLOCK_MONOTONIC, &t); in main()
352 clock_gettime(CLOCK_MONOTONIC, &t); in main()
/system/extras/tests/framebuffer/
Drefresh.c23 clock_gettime(CLOCK_MONOTONIC, &t); in systemTime()
/system/extras/simpleperf/
Denvironment.h142 clock_gettime(CLOCK_MONOTONIC, &ts); in GetSystemClock()
/system/hwservicemanager/
Dservice.cpp101 int fdTimer = timerfd_create(CLOCK_MONOTONIC, 0 /*flags*/); in setupTo()
/system/libfmq/
DEventFlag.cpp227 clock_gettime(CLOCK_MONOTONIC, waitTime); in addNanosecondsToCurrentTime()
/system/core/libcutils/
Dtrace-container.cpp140 uint64_t ts = gettime(CLOCK_MONOTONIC); \

12