Detect if the system clock moved backwards for polling queue

Detect if the system clock moved backwards and then use the last detected time to calculate the queue polling timeout