xTimerGetExpiryTime() function
TickType_t xTimerGetExpiryTime( TimerHandle_t xTimer ); Returns the time in ticks at which the timer will expire. If this is less than the current tick count then the expiry time has overflowed from the current time.
Arguments
xTimer
The handle of the timer being queried.
Return value
If the timer is running then the time in ticks at which the timer will next expire is returned. If the timer is not running then the return value is undefined.