mirror of
https://github.com/adafruit/Adafruit_GPS.git
synced 2026-07-28 04:08:15 +00:00
millis() returns an unsigned long integer, and C++ guarantees that
arithmetics on this type work modulo (ULONG_MAX+1). This behavior
ensures that computing a delay as
millis() - previousMillis
yields the correct result across millis() rollover events, as long as
the time actually elapsed is less than about 49.7 days.