If you want to roll your own solution using millis() then you might find this thread useful Using millis() for timing. A beginners guide
If you want to roll your own solution using millis() then you might find this thread useful Using millis() for timing. A beginners guide