* @brief Get the Time Diff object * * @param start_time start time * @param end_time end time * @return double the diff time (sec) */
| 88 | * @return double the diff time (sec) |
| 89 | */ |
| 90 | inline double GetTimeDiff(struct timeval start_time, struct timeval end_time) { |
| 91 | double second; |
| 92 | second = static_cast<double>(end_time.tv_sec - start_time.tv_sec) * SEC_2_US + |
| 93 | end_time.tv_usec - start_time.tv_usec; |
| 94 | second = second / SEC_2_US; |
| 95 | return second; |
| 96 | } |
| 97 | |
| 98 | /** |
| 99 | * @brief compare the limits with the input |
nothing calls this directly
no outgoing calls
no test coverage detected