There is a timed action library, on the playground, that might be useful. It uses millis to determine when to do things.