Home
last modified time | relevance | path

Searched refs:NSEC_PER_SEC (Results 1 – 3 of 3) 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/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.cc51 #define NSEC_PER_SEC (1000 * NANOSEC_PER_MILLISEC) macro
601 if (abstime.tv_nsec > NSEC_PER_SEC) { in GKI_wait()
602 abstime.tv_sec += (abstime.tv_nsec / NSEC_PER_SEC); in GKI_wait()
603 abstime.tv_nsec = abstime.tv_nsec % NSEC_PER_SEC; in GKI_wait()