Lines Matching refs:second
102 // second, is later than the time pointed to by first.
104 const struct timespec *second)
109 assert(second != NULL);
111 assert(second->tv_nsec >= 0 && second->tv_nsec < nSecsPerSec);
112 rv.tv_sec = second->tv_sec - first->tv_sec;
113 if (second->tv_nsec >= first->tv_nsec) {
114 rv.tv_nsec = second->tv_nsec - first->tv_nsec;
116 rv.tv_nsec = (second->tv_nsec + nSecsPerSec) - first->tv_nsec;
125 // second, is later than the time pointed to by first.
127 const struct timeval *second)
132 assert(second != NULL);
134 assert(second->tv_usec >= 0 && second->tv_usec < uSecsPerSec);
135 rv.tv_sec = second->tv_sec - first->tv_sec;
136 if (second->tv_usec >= first->tv_usec) {
137 rv.tv_usec = second->tv_usec - first->tv_usec;
139 rv.tv_usec = (second->tv_usec + uSecsPerSec) - first->tv_usec;