Simple framework for timer.