| 38 | |
| 39 | namespace { |
| 40 | inline uint64_t time_diff(const struct timeval& start_time, |
| 41 | const struct timeval& end_time) { |
| 42 | return (end_time.tv_sec - start_time.tv_sec) * 1000000 + |
| 43 | (end_time.tv_usec - start_time.tv_usec); |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | namespace rec { |