Home | History | Annotate | Download | only in timer

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
70 class BASE_EXPORT Timer {
72 // Construct a timer in repeating or one-shot mode. Start or SetTaskInfo must
75 Timer(bool retain_user_task, bool is_repeating);
77 // Construct a timer with retained task info.
78 Timer(const tracked_objects::Location& posted_from,
83 virtual ~Timer();
85 // Returns true if the timer is running (i.e., not stopped).
88 // Returns the current delay for this timer.
93 // run tasks on the same thread the timer is used on.
96 // Start the timer to run at the given |delay| from now. If the timer is
102 // Call this method to stop and cancel the timer. It is a no-op if the timer
106 // Call this method to reset the timer delay. The user_task_ must be set. If
107 // the timer is not running, this will start it by posting a task.
180 // excessively Stops and Starts the timer. This time can be a "zero" TimeTicks
197 DISALLOW_COPY_AND_ASSIGN(Timer);
203 class BaseTimerMethodPointer : public Timer {
205 // This is here to work around the fact that Timer::Start is "hidden" by the
208 // and convert callers to use the base::Closure version in Timer::Start,
210 using Timer::Start;
214 : Timer(mode == REPEATING, mode == REPEATING) {}
216 // Start the timer to run at the given |delay| from now. If the timer is
224 Timer::Start(posted_from, delay,
230 // A simple, one-shot timer. See usage notes at the top of the file.
237 // A simple, repeating timer. See usage notes at the top of the file.
244 // A Delay timer is like The Button from Lost. Once started, you have to keep
254 class DelayTimer : protected Timer {
261 : Timer(posted_from,
274 Timer::Reset();