2 -- @author Julien Danjou <julien@danjou.info>
3 -- @copyright 2009 Julien Danjou
6 --- Timer object. This type of object is useful when triggering events in a repeatedly.
7 -- The timer will emit the "timeout" signal every N seconds, N being the timeout value.
8 -- @field timeout Interval in seconds to emit the timeout signal.
9 -- Can be any value, including floating ones (i.e. 1.5 second).
10 -- @field started Read-only boolean field indicating if the timer has been started.
22 --- Restart the timer.
27 -- @param name A signal name.
28 -- @param func A function to call when the signal is emitted.
29 -- @name connect_signal
33 -- @param name A signal name.
34 -- @param func A function to remove.
35 -- @name disconnect_signal
39 -- @param name A signal name.
40 -- @param ... Various arguments, optional.
44 --- Get the number of instances.
45 -- @return The number of timer objects alive.