How to pause for 1 second in between the iterations of my loop

Perhaps use a timeout?