tidy up timer api
Merge pull request #17 from michaelfung/master

tidy up timer api