Uno millis() falls behind over long periods (hours/days)

@cotestatnt It's not about me being right, it's about you being wrong.

Ppl come here, I count myself among them, to learn. If I didn't learn something almost every time I stopped by, I wouldn't.

So it is important to clean up after any mistakes and errors and misinformed assertions, the more authoritative they are made to sound, the more important.

Here's the program you didn't write, but could have in less than the 7 minutes it took me:

And some output from it:

Actual time 8:59:27
Millis time 8:59:27

... went to lunch, upon return

Actual time 9:55:52
Millis time 9:55:52

The two methods of counting off time are in lock step. I suspect they would remain so until millis() rolled over.

a7

1 Like