Lines Matching refs:total
88 struct timespec total; // total elapsed time spent waiting
89 total.tv_sec = 0;
90 total.tv_nsec = 0;
91 bool measure = elapsed != NULL; // whether to measure total elapsed time spent waiting
213 if (!measure || requested->tv_sec < total.tv_sec ||
214 (requested->tv_sec == total.tv_sec && requested->tv_nsec <= total.tv_nsec)) {
218 remaining.tv_sec = requested->tv_sec - total.tv_sec;
219 if ((remaining.tv_nsec = requested->tv_nsec - total.tv_nsec) < 0) {
243 // update total elapsed time spent waiting
247 total.tv_sec += after.tv_sec - before.tv_sec;
251 total.tv_sec--;
253 if ((total.tv_nsec += deltaNs) >= 1000000000) {
254 total.tv_nsec -= 1000000000;
255 total.tv_sec++;
283 *elapsed = total;
291 total.tv_sec, total.tv_nsec / 1000000);
395 struct timespec total; // total elapsed time spent waiting
396 total.tv_sec = 0;
397 total.tv_nsec = 0;
452 if (requested->tv_sec < total.tv_sec ||
453 (requested->tv_sec == total.tv_sec && requested->tv_nsec <= total.tv_nsec)) {
457 remaining.tv_sec = requested->tv_sec - total.tv_sec;
458 if ((remaining.tv_nsec = requested->tv_nsec - total.tv_nsec) < 0) {
969 // As mFramesReady is the total remaining frames in the static audio track,