Pure Ruby one-shot and periodic timers