Implement a timer-based application that manages background execution and updates the UI smoothly without blocking the main thread.