To me a Timer interrupt is the most valuable and transparent solution.