Fixed incorrect millis() implementation

millis() comparisons now properly account for rollovers