I want to create an accurate timer that plays a tone after every 2 seconds (for example). I have implemented this using a CPeriod timer, and it appears fairly accurate at the moment, but I suspect that if i need to do anymore processing between events it will be less accurate.
So my question is, would I be better off using CHeartbeat? How would I implement this? How different is it to using a CPeriodic?