test code for timer