Lines Matching refs:total
68 struct timespec total; // total elapsed time spent waiting in obtainBuffer() local
69 total.tv_sec = 0; in obtainBuffer()
70 total.tv_nsec = 0; in obtainBuffer()
193 if (!measure || requested->tv_sec < total.tv_sec || in obtainBuffer()
194 (requested->tv_sec == total.tv_sec && requested->tv_nsec <= total.tv_nsec)) { in obtainBuffer()
198 remaining.tv_sec = requested->tv_sec - total.tv_sec; in obtainBuffer()
199 if ((remaining.tv_nsec = requested->tv_nsec - total.tv_nsec) < 0) { in obtainBuffer()
227 total.tv_sec += after.tv_sec - before.tv_sec; in obtainBuffer()
231 total.tv_sec--; in obtainBuffer()
233 if ((total.tv_nsec += deltaNs) >= 1000000000) { in obtainBuffer()
234 total.tv_nsec -= 1000000000; in obtainBuffer()
235 total.tv_sec++; in obtainBuffer()
263 *elapsed = total; in obtainBuffer()
271 total.tv_sec, total.tv_nsec / 1000000); in obtainBuffer()
364 struct timespec total; // total elapsed time spent waiting in waitStreamEndDone() local
365 total.tv_sec = 0; in waitStreamEndDone()
366 total.tv_nsec = 0; in waitStreamEndDone()
422 if (requested->tv_sec < total.tv_sec || in waitStreamEndDone()
423 (requested->tv_sec == total.tv_sec && requested->tv_nsec <= total.tv_nsec)) { in waitStreamEndDone()
427 remaining.tv_sec = requested->tv_sec - total.tv_sec; in waitStreamEndDone()
428 if ((remaining.tv_nsec = requested->tv_nsec - total.tv_nsec) < 0) { in waitStreamEndDone()