With many programs I wish to have certain task run at a consistant rate. I've put togher a simple Task sequencer based on a counter and a MOD calculation. I think this should work for my needs but I'm always interested in other methods that are more professional or 'cleaner' . I think the version attached is nice and simple but it might be a bit clunky.

This idea is that certain groups of tasks run at a repeatable period.
The master 'Counter' is done by a simple Counter+1 calculation and it could just as easily be done by an interupt based counter.
Given that any given set of tasks might take different amount of time to execute, this is not an guarenteed time execution however it is very simple and you should get a reliable spacing between your groups of tasks.
Task1 should run every Loop.
Task2 every other loop.
Task3 every 5th loop.
Taks4 every 10th loop
Task5 every 20th loop.
This is probably all very obvious stuff but not being a coder by trade I'm learning by trial and error! J.

Any other simple methods people regularly use?