Lines Matching refs:total
74 struct timespec total; // total elapsed time spent waiting in obtainBuffer() local
75 total.tv_sec = 0; in obtainBuffer()
76 total.tv_nsec = 0; in obtainBuffer()
199 if (!measure || requested->tv_sec < total.tv_sec || in obtainBuffer()
200 (requested->tv_sec == total.tv_sec && requested->tv_nsec <= total.tv_nsec)) { in obtainBuffer()
204 remaining.tv_sec = requested->tv_sec - total.tv_sec; in obtainBuffer()
205 if ((remaining.tv_nsec = requested->tv_nsec - total.tv_nsec) < 0) { in obtainBuffer()
233 total.tv_sec += after.tv_sec - before.tv_sec; in obtainBuffer()
237 total.tv_sec--; in obtainBuffer()
239 if ((total.tv_nsec += deltaNs) >= 1000000000) { in obtainBuffer()
240 total.tv_nsec -= 1000000000; in obtainBuffer()
241 total.tv_sec++; in obtainBuffer()
269 *elapsed = total; in obtainBuffer()
277 total.tv_sec, total.tv_nsec / 1000000); in obtainBuffer()
378 struct timespec total; // total elapsed time spent waiting in waitStreamEndDone() local
379 total.tv_sec = 0; in waitStreamEndDone()
380 total.tv_nsec = 0; in waitStreamEndDone()
436 if (requested->tv_sec < total.tv_sec || in waitStreamEndDone()
437 (requested->tv_sec == total.tv_sec && requested->tv_nsec <= total.tv_nsec)) { in waitStreamEndDone()
441 remaining.tv_sec = requested->tv_sec - total.tv_sec; in waitStreamEndDone()
442 if ((remaining.tv_nsec = requested->tv_nsec - total.tv_nsec) < 0) { in waitStreamEndDone()