Lines Matching refs:Timer
5 // OneShotTimer and RepeatingTimer provide a simple timer API. As the names
10 // OneShotTimer and RepeatingTimer both cancel the timer when they go out of
14 // receive timer events.
36 // allows you to easily defer the timer event until the timer delay passes once
47 // IMPORTANT: If you change timer code, make sure that all tests (including
69 class BASE_EXPORT Timer {
71 // Construct a timer in repeating or one-shot mode. Start or SetTaskInfo must
74 Timer(bool retain_user_task, bool is_repeating);
76 // Construct a timer with retained task info.
77 Timer(const tracked_objects::Location& posted_from,
82 virtual ~Timer();
84 // Returns true if the timer is running (i.e., not stopped).
87 // Returns the current delay for this timer.
90 // Start the timer to run at the given |delay| from now. If the timer is
96 // Call this method to stop and cancel the timer. It is a no-op if the timer
100 // Call this method to reset the timer delay. The user_task_ must be set. If
101 // the timer is not running, this will start it by posting a task.
159 // excessively Stops and Starts the timer. This time can be a "zero" TimeTicks
176 DISALLOW_COPY_AND_ASSIGN(Timer);
183 class BaseTimerMethodPointer : public Timer {
187 // This is here to work around the fact that Timer::Start is "hidden" by the
190 // and convert callers to use the base::Closure version in Timer::Start,
192 using Timer::Start;
194 BaseTimerMethodPointer() : Timer(kIsRepeating, kIsRepeating) {}
196 // Start the timer to run at the given |delay| from now. If the timer is
203 Timer::Start(posted_from, delay,
209 // A simple, one-shot timer. See usage notes at the top of the file.
214 // A simple, repeating timer. See usage notes at the top of the file.
219 // A Delay timer is like The Button from Lost. Once started, you have to keep
230 class DelayTimer : protected Timer {
238 : Timer(posted_from, delay,
242 void Reset() { Timer::Reset(); }