improvement: now call millis() one time over an update