I did already figure out a solution to this, but I'm curious to know how others would solve it.
I have a found set of records, currently 366 but changing every week. I need to run a scripted process on each record via a loop, but for reasons which are irrelevant to this question, I need to pause for 30 seconds every 50 records. I am setting a variable called $counter after each record is processed.
How would you solve it?