Timer: implemented a single_shot timer