Home
last modified time | relevance | path

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

/system/extras/tests/lib/testUtil/
DtestUtil.c41 static const unsigned int nSecsPerSec = 1000000000; variable
49 rv += (double) val->tv_nsec / nSecsPerSec; in ts2double()
71 rv.tv_nsec = (amt - rv.tv_sec) * nSecsPerSec; in double2ts()
73 while ((unsigned) rv.tv_nsec >= nSecsPerSec) { in double2ts()
74 rv.tv_nsec -= nSecsPerSec; in double2ts()
107 assert(first->tv_nsec >= 0 && first->tv_nsec < nSecsPerSec); in tsDelta()
108 assert(second->tv_nsec >= 0 && second->tv_nsec < nSecsPerSec); in tsDelta()
113 rv.tv_nsec = (second->tv_nsec + nSecsPerSec) - first->tv_nsec; in tsDelta()