int valvula_timeval_substract ( struct timeval *  a,
struct timeval *  b,
struct timeval *  result 
)

Performs a timeval substract leaving the result in (result).

Subtract the `struct timeval' values a and b, storing the result in result.

Parameters
aFirst parameter to substract
bSecond parameter to substract
resultResult variable. Do no used a or b to place the result.
Returns
1 if the difference is negative, otherwise 0 (operations implemented is a - b).

Referenced by valvula_async_queue_timedpop().