A device intended to run for months needs its periodic tasks to survive the millis counter wrapping. Why can comparing the current time with a future timestamp fail near that boundary?
What form of elapsed-time test is appropriate, and how can it be tested without waiting roughly 50 days?




