Home
last modified time | relevance | path

Searched refs:CLOCK_MONOTONIC (Results 1 – 25 of 48) 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/logging/liblog/tests/
Dlog_time_test.cpp25 clock_gettime(CLOCK_MONOTONIC, &ts); in TEST()
Dliblog_benchmark.cpp110 do_clock_overhead(state, CLOCK_MONOTONIC); in BM_time_clock_gettime_MONOTONIC()
117 syscall(__NR_clock_gettime, CLOCK_MONOTONIC, &t); in BM_time_clock_gettime_MONOTONIC_syscall()
135 clock_getres(CLOCK_MONOTONIC, &t); in BM_time_clock_getres_MONOTONIC()
143 syscall(__NR_clock_getres, CLOCK_MONOTONIC, &t); in BM_time_clock_getres_MONOTONIC_syscall()
936 log_time now(CLOCK_MONOTONIC); in BM_lookupEventTagNum_logd_new()
Dliblog_test.cpp215 log_time ts(CLOCK_MONOTONIC); in TEST()
245 ts1 = log_time(CLOCK_MONOTONIC); in TEST()
299 clock_gettime(CLOCK_MONOTONIC, &ts); in TEST()
515 signal_time = log_time(CLOCK_MONOTONIC); in caught_blocking_signal()
624 } while (!signaled || (log_time(CLOCK_MONOTONIC) < signal_time)); in TEST()
674 signal_time = log_time(CLOCK_MONOTONIC); in running_thread()
780 } while (!signaled || (log_time(CLOCK_MONOTONIC) < signal_time)); in TEST()
1569 log_time ts(CLOCK_MONOTONIC); in TEST()
1592 ts = log_time(CLOCK_MONOTONIC); in TEST()
1610 ts = log_time(CLOCK_MONOTONIC); in TEST()
[all …]
/system/core/libutils/include/utils/
DCondition.h103 pthread_condattr_setclock(&attr, CLOCK_MONOTONIC); in Condition()
123 clock_gettime(CLOCK_MONOTONIC, &ts); in waitRelative()
/system/unwinding/libbacktrace/
DThreadEntry.cpp39 pthread_condattr_setclock(&attr, CLOCK_MONOTONIC); in ThreadEntry()
101 clock_gettime(CLOCK_MONOTONIC, &ts); in Wait()
/system/chre/platform/linux/
Dsystem_time.cc30 if (clock_gettime(CLOCK_MONOTONIC, &timeNow)) { in getMonotonicTime()
Dsystem_timer.cc66 int ret = timer_create(CLOCK_MONOTONIC, &sigevt, &mTimerId); in init()
/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/extras/memory_replay/
DUtils.h24 clock_gettime(CLOCK_MONOTONIC, &t); in Nanotime()
/system/extras/tests/timetest/
Dtimetest.c17 if(clock_gettime(CLOCK_MONOTONIC, &t)) { in nanotime()
64 int clock_id = CLOCK_MONOTONIC; in main()
/system/extras/simpleperf/runtest/
Drun_and_sleep.cpp11 clock_gettime(CLOCK_MONOTONIC, &ts); in GetSystemClock()
/system/core/libutils/
DTimers.cpp37 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/security/keystore/
Dkeystore_keymaster_enforcement.h35 int err = clock_gettime(CLOCK_MONOTONIC, &tp); in get_current_time()
/system/extras/simpleperf/demo/SimpleperfExampleWithNative/app/src/main/cpp/
Dnative-lib.cpp66 clock_gettime(CLOCK_MONOTONIC, &ts); in GetSystemClock()
/system/connectivity/wificond/tests/
Dshell_utils.cpp52 clock_gettime(CLOCK_MONOTONIC, &ts); in GetCurrentTimeMs()
/system/logging/logd/
DLogKlog.cpp200 log_time LogKlog::correction = (log_time(CLOCK_REALTIME) < log_time(CLOCK_MONOTONIC))
202 : (log_time(CLOCK_REALTIME) - log_time(CLOCK_MONOTONIC));
207 signature(CLOCK_MONOTONIC), in LogKlog()
327 log_time mono(CLOCK_MONOTONIC); in sniffTime()
/system/extras/memtrack/
Dmemtrack.cpp346 clock_gettime(CLOCK_MONOTONIC, &t); in main()
352 clock_gettime(CLOCK_MONOTONIC, &t); in main()
/system/hwservicemanager/
Dservice.cpp99 int fdTimer = timerfd_create(CLOCK_MONOTONIC, 0 /*flags*/); in setupTo()
/system/vold/
DEncryptInplace.cpp156 if (clock_gettime(CLOCK_MONOTONIC, &time_now)) { in UpdateProgress()
337 if (clock_gettime(CLOCK_MONOTONIC, &time_started)) { in EncryptInPlace()
/system/extras/tests/framebuffer/
Drefresh.c23 clock_gettime(CLOCK_MONOTONIC, &t); in systemTime()
/system/extras/simpleperf/
Denvironment.h141 clock_gettime(CLOCK_MONOTONIC, &ts); in GetSystemClock()
/system/core/libcutils/
Dtrace-container.cpp138 uint64_t ts = gettime(CLOCK_MONOTONIC); \

12