| 152 | } |
| 153 | |
| 154 | int time_diff(const struct timeval* t1, const struct timeval* t2) { |
| 155 | return (t2->tv_usec - t1->tv_usec) + (t2->tv_sec - t1->tv_sec) * 1000000; |
| 156 | } |
| 157 | |
| 158 | /************************************************************************** |
| 159 | * Test cases |
no outgoing calls
no test coverage detected