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

It should be emphasized that my opinion is that "there is no reason why counting with a hardware timer is better than millis".

Keep in mind that cheap DS3231 clones made in China often same or less accuracy found in Arduino with on-board xtal.
You need got a genuine component, if you need more accuracy.

1 Like