time-util.h revision 0531ee2f23b4562eb6c212593680c820fa9e828b
1e21e6be70994b1aa9e52ca0e2f51afefca6d0dfTimo Sirainen/* Returns -1 if tv1<tv2, 1 if tv1>tv2, 0 if they're equal. */
3b94ff5951db4d4eddb7a80ed4e3f61207202635Timo Sirainenint timeval_cmp(const struct timeval *tv1, const struct timeval *tv2);
0f39a57760d93cddbce3ca43096d78e0fe2f42fdTimo Sirainen/* Returns tv1-tv2 in milliseconds. */
0f39a57760d93cddbce3ca43096d78e0fe2f42fdTimo Sirainenint timeval_diff_msecs(const struct timeval *tv1, const struct timeval *tv2);
0f39a57760d93cddbce3ca43096d78e0fe2f42fdTimo Sirainen/* Returns tv1-tv2 in microseconds. */
0f39a57760d93cddbce3ca43096d78e0fe2f42fdTimo Sirainenlong long timeval_diff_usecs(const struct timeval *tv1,