Home | History | Annotate | Download | only in pyautolib

Lines Matching refs:timer

38     """Adds a timer to the queue.
52 """Sets the timer check frequency, in seconds."""
56 """Removes a timer from the queue.
59 method: the timer containing the given method to be removed
62 for timer in self.timers:
63 if timer['method'] == method:
64 self.timers.remove(timer)
69 """Stops the timer."""
73 """Primary run loop for the timer."""
77 for timer in self.timers:
78 if timer['next time'] <= now:
80 timer['method'](*timer['args'])
81 timer['next time'] += timer['interval']