I have a class that needs to run 24x7. It uses a Timers.Timer to execute an elapsed event in a calculated interval. After some time, 3-5 days, the timer just stops executing
If your system real-time is not very strict, you try to
if (next > 10) { return next; } else { return 10; }