How to create a simple loop?

Like I said above, there are lots of ways to implement this. Another approach would be to use Timers instead of the Thread sleep but that gets a little complicated: