Timeval arithmetic functions


Functions

int nms_timeval_subtract (struct timeval *, const struct timeval *, const struct timeval *)
int nms_timeval_add (struct timeval *, const struct timeval *, const struct timeval *)
void f2time (double, struct timeval *)

Function Documentation

int nms_timeval_add ( struct timeval *  res,
const struct timeval *  x,
const struct timeval *  y 
)

timeval addition

Parameters:
x first value
y second value
res sum of y and x

Definition at line 38 of file timeval.c.

Referenced by rtcp(), and rtcp_handle_event().

int nms_timeval_subtract ( struct timeval *  res,
const struct timeval *  x,
const struct timeval *  y 
)

timeval subtraction

Parameters:
x first value
y second value
res difference between x and y

Definition at line 60 of file timeval.c.

Referenced by rtcp(), rtcp_build_rr(), and rtcp_schedule().


Generated on Tue Feb 3 03:10:03 2009 for libnemesi by  doxygen 1.5.4