Lines Matching refs:total

155     struct timespec total;          // total elapsed time spent waiting  in obtainBuffer()  local
156 total.tv_sec = 0; in obtainBuffer()
157 total.tv_nsec = 0; in obtainBuffer()
292 if (!measure || requested->tv_sec < total.tv_sec || in obtainBuffer()
293 (requested->tv_sec == total.tv_sec && requested->tv_nsec <= total.tv_nsec)) { in obtainBuffer()
297 remaining.tv_sec = requested->tv_sec - total.tv_sec; in obtainBuffer()
298 if ((remaining.tv_nsec = requested->tv_nsec - total.tv_nsec) < 0) { in obtainBuffer()
327 total.tv_sec += after.tv_sec - before.tv_sec; in obtainBuffer()
332 total.tv_sec--; in obtainBuffer()
334 if ((total.tv_nsec += deltaNs) >= 1000000000) { in obtainBuffer()
335 total.tv_nsec -= 1000000000; in obtainBuffer()
336 total.tv_sec++; in obtainBuffer()
364 *elapsed = total; in obtainBuffer()
372 total.tv_sec, total.tv_nsec / 1000000); in obtainBuffer()
492 struct timespec total; // total elapsed time spent waiting in waitStreamEndDone() local
495 total.tv_sec = 0; in waitStreamEndDone()
496 total.tv_nsec = 0; in waitStreamEndDone()
552 if (requested->tv_sec < total.tv_sec || in waitStreamEndDone()
553 (requested->tv_sec == total.tv_sec && requested->tv_nsec <= total.tv_nsec)) { in waitStreamEndDone()
557 remaining.tv_sec = requested->tv_sec - total.tv_sec; in waitStreamEndDone()
558 if ((remaining.tv_nsec = requested->tv_nsec - total.tv_nsec) < 0) { in waitStreamEndDone()
586 total.tv_sec += after.tv_sec - before.tv_sec; in waitStreamEndDone()
591 total.tv_sec--; in waitStreamEndDone()
593 if ((total.tv_nsec += deltaNs) >= 1000000000) { in waitStreamEndDone()
594 total.tv_nsec -= 1000000000; in waitStreamEndDone()
595 total.tv_sec++; in waitStreamEndDone()