Home
last modified time | relevance | path

Searched refs:NSEC_PER_SEC (Results 1 – 4 of 4) sorted by relevance

/system/extras/tests/suspend_stress/
Dsuspend_stress.cpp31 #define NSEC_PER_SEC (1000*1000*1000) macro
33 #define NSEC_PER_MSEC (NSEC_PER_SEC/MSEC_PER_SEC)
36 return ((long long)(a->tv_sec - b->tv_sec)) * NSEC_PER_SEC + in timediff_ns()
164 if (llabs(diff) > NSEC_PER_SEC) { in main()
166 llabs(diff) / NSEC_PER_SEC, in main()
170 llabs(diff) / NSEC_PER_SEC, in main()
/system/memory/libdmabufheap/tests/
Ddmabuf_heap_bench.c44 #define NSEC_PER_SEC 1000000000LL macro
161 start = ts_start.tv_sec * NSEC_PER_SEC + ts_start.tv_nsec; in ion_heap_bench()
162 end = ts_end.tv_sec * NSEC_PER_SEC + ts_end.tv_nsec; in ion_heap_bench()
188 start = ts_start.tv_sec * NSEC_PER_SEC + ts_start.tv_nsec; in dmabuf_heap_bench()
189 end = ts_end.tv_sec * NSEC_PER_SEC + ts_end.tv_nsec; in dmabuf_heap_bench()
/system/extras/iotop/
Diotop.cpp30 constexpr uint64_t NSEC_PER_SEC = 1000000000; variable
37 float percent = ns / stats.threads() / (time * NSEC_PER_SEC / 100.0f); in TimeToTgidPercent()
/system/nfc/src/gki/ulinux/
Dgki_ulinux.cc47 #define NSEC_PER_SEC (1000 * NANOSEC_PER_MILLISEC) macro
597 if (abstime.tv_nsec > NSEC_PER_SEC) { in GKI_wait()
598 abstime.tv_sec += (abstime.tv_nsec / NSEC_PER_SEC); in GKI_wait()
599 abstime.tv_nsec = abstime.tv_nsec % NSEC_PER_SEC; in GKI_wait()