lib: Timer: Add single shot mode.
Use Timer single shot mode.