Home
last modified time | relevance | path

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

/system/extras/tests/lib/testUtil/
DtestUtil.c40 static const unsigned int uSecsPerSec = 1000000; variable
60 rv += (double) val->tv_usec / uSecsPerSec; in tv2double()
87 rv.tv_usec = (amt - rv.tv_sec) * uSecsPerSec; in double2tv()
89 while ((unsigned) rv.tv_usec >= uSecsPerSec) { in double2tv()
90 rv.tv_usec -= uSecsPerSec; in double2tv()
130 assert(first->tv_usec >= 0 && first->tv_usec < uSecsPerSec); in tvDelta()
131 assert(second->tv_usec >= 0 && second->tv_usec < uSecsPerSec); in tvDelta()
136 rv.tv_usec = (second->tv_usec + uSecsPerSec) - first->tv_usec; in tvDelta()