Implement timer module with unit test