Add interface to set timer

Add interface to set timer