Micros() maximum number

What is the max number of micros() before it rolls over and starts over again. I thought it would be 2^32 -1 4,294,967,295 but that did not seem to work ? 4,294,967,000 works but without doing trial and error method does any one know what the actual max number is before micros() will roll over back to zero?

How did you detect that?

Why do you care?

to have a roll over is the nature of each counter.
You may take a view here:

Easy to test, print micros() every second say, to the serial monitor and see how long it takes to roll over.

How did you declare your micros() values. long or unsigned long.

The Reference states approximately 70 minutes.

71.58278825 minutes. :slight_smile:

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.