Difference between two timestamps.
The function returns difference between two timestamps in seconds (t1 - t2).
|t1 ||first timeval |
|t2 ||second timeval|
- The difference between two timestamps in seconds as a double.
Definition at line 131 of file su_time.c.
References su_time_diff(), su_time_s::tv_sec, and su_time_s::tv_usec.
Referenced by su_time_diff(), and su_timer_expire().
((double)t1.tv_sec - (double)t2.tv_sec)
+ (double)((long)t1.tv_usec - (long)t2.tv_usec) / 1000000.0;