add basic timer implementation.