diff options
Diffstat (limited to 'base/timer.h')
-rw-r--r-- | base/timer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/timer.h b/base/timer.h index add7844..d78423a 100644 --- a/base/timer.h +++ b/base/timer.h @@ -74,6 +74,9 @@ class Timer { public: Timer(int delay, Task* task, bool repeating); + // For one-shot timers, you can also specify the exact fire time. + Timer(Time fire_time, Task* task); + // The task to be run when the timer fires. Task* task() const { return task_; } void set_task(Task* task) { task_ = task; } |