how can use timer for a loop like this?

Printable View