Add interface to set timer
Merge pull request #3 from Yaliang/master

Add interface to set timer