Home
last modified time | relevance | path

Searched refs:ts_start (Results 1 – 2 of 2) sorted by relevance

/aosp12/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
H A Dcam_semaphore_tests.cpp39 static inline int64_t time_diff(timespec& ts_start, timespec& ts_end) { in time_diff() argument
40 if (ts_start.tv_sec == ts_end.tv_sec) { in time_diff()
41 return (int64_t)ts_end.tv_nsec - ts_start.tv_nsec; in time_diff()
43 return (int64_t)(ts_end.tv_sec - 1 - ts_start.tv_sec) * NS_PER_S + in time_diff()
44 ts_end.tv_nsec + NS_PER_S - ts_start.tv_nsec; in time_diff()
/aosp12/system/memory/libdmabufheap/tests/
H A Ddmabuf_heap_bench.c124 struct timespec ts_start, ts_end; in ion_heap_bench() local
153 clock_gettime(CLOCK_MONOTONIC, &ts_start); in ion_heap_bench()
161 start = ts_start.tv_sec * NSEC_PER_SEC + ts_start.tv_nsec; in ion_heap_bench()
172 struct timespec ts_start, ts_end; in dmabuf_heap_bench() local
180 clock_gettime(CLOCK_MONOTONIC, &ts_start); in dmabuf_heap_bench()
188 start = ts_start.tv_sec * NSEC_PER_SEC + ts_start.tv_nsec; in dmabuf_heap_bench()