diff options
Diffstat (limited to 'base/timer.h')
-rw-r--r-- | base/timer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/base/timer.h b/base/timer.h index 32adbf1..5361130 100644 --- a/base/timer.h +++ b/base/timer.h @@ -66,6 +66,13 @@ class BaseTimer_Helper { return delayed_task_ != NULL; } + // Returns the current delay for this timer. May only call this method when + // the timer is running! + TimeDelta GetCurrentDelay() const { + DCHECK(IsRunning()); + return delayed_task_->delay_; + } + protected: BaseTimer_Helper() : delayed_task_(NULL) {} |