You shouldn't need delays to get the repeat; the repeat has an interval specified, which will take care of the timing in between.
The post I linked to above is a bit old now, but everything there will still work and shows how you can do this:
There are also examples of some newer "Repeat" features in the docs that might make some of these easier to write, though there's no reason you have to use these features if the "old" way still works:
But if you are still curious about delays, etc., the docs have lots of information there, too, so I'd encourage a read.
Good luck!