Handle millis() rollover

Cast all millis() subtractions to unsigned long to account for any
rollover.