UTILS_TimespecSubtract() function
Calculates pxResult = x - y.
Syntax
int UTILS_TimespecSubtract( 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 subtraction.
y
The second argument for subtraction.
Return value
-1 if any argument was NULL; 1 if result is negative; otherwise, 0.