Lines Matching refs:second
103 const struct timespec *second) in tsDelta() argument
108 assert(second != NULL); in tsDelta()
110 assert(second->tv_nsec >= 0 && second->tv_nsec < nSecsPerSec); in tsDelta()
111 rv.tv_sec = second->tv_sec - first->tv_sec; in tsDelta()
112 if (second->tv_nsec >= first->tv_nsec) { in tsDelta()
113 rv.tv_nsec = second->tv_nsec - first->tv_nsec; in tsDelta()
115 rv.tv_nsec = (second->tv_nsec + nSecsPerSec) - first->tv_nsec; in tsDelta()
126 const struct timeval *second) in tvDelta() argument
131 assert(second != NULL); in tvDelta()
133 assert(second->tv_usec >= 0 && second->tv_usec < uSecsPerSec); in tvDelta()
134 rv.tv_sec = second->tv_sec - first->tv_sec; in tvDelta()
135 if (second->tv_usec >= first->tv_usec) { in tvDelta()
136 rv.tv_usec = second->tv_usec - first->tv_usec; in tvDelta()
138 rv.tv_usec = (second->tv_usec + uSecsPerSec) - first->tv_usec; in tvDelta()