How to loop using time

So how would I go about doing this: looping something every N seconds for N seconds?
Topic archived. No new replies allowed.