Utility class to simplify use of timers created by setTimeout/setInterval