UTILS_AbsoluteTimespecToTicks() function
Calculates the number of ticks between now and a given timespec.
Arguments
pxAbsoluteTime
A time in the future, specified as seconds and nanoseconds since CLOCK_REALTIME's 0.
pxResult
Where the result of the conversion is stored. The result is rounded up for fractional ticks.
Return value
0 on success. Otherwise, ETIMEDOUT if pxAbsoluteTime is in the past, or EINVAL for invalid parameters.