Instead of every 5 seconds after start time, print the current time on the clock every 5 seconds (i.e. at :00, :05, :10, etc.). Poll now times out after 1 second now, allowing us to process the time if nothing else happened. Theoretically we should timeout every 500ms to ensure we definitely print the real second but meh.
Instead of every 5 seconds after start time, print the current time on the clock every 5 seconds (i.e. at :00, :05, :10, etc.). Poll now times out after 1 second now, allowing us to process the time if nothing else happened. Theoretically we should timeout every 500ms to ensure we definitely print the real second but meh.