UTILS_TimespecAdd() function
Calculates pxResult = x + y.
Syntax
int UTILS_TimespecAdd( struct timespec * const pxResult,
const struct timespec * const x,
const struct timespec * const y );
Arguments
pxResult
Where the result of the calculation is stored.
x
The first argument for addition.
y
The second argument for addition.
Return value
-1 if any argument was NULL; 1 if result is negative; otherwise, 0.