Home | History | Annotate | Download | only in utils

Lines Matching refs:ptv

95 /*static*/ void DurationTimer::addToTimeval(struct timeval* ptv, long usec)
103 if (ptv->tv_usec >= 1000000) {
104 ptv->tv_sec += ptv->tv_usec / 1000000;
105 ptv->tv_usec %= 1000000;
108 ptv->tv_usec += usec % 1000000;
109 if (ptv->tv_usec >= 1000000) {
110 ptv->tv_usec -= 1000000;
111 ptv->tv_sec++;
113 ptv->tv_sec += usec / 1000000;