If an interrupt service routine takes too long it can slow down the millis timer because it is not updated duriring an ISR.