xtd 0.2.0
Loading...
Searching...
No Matches

◆ start()

void xtd::timers::timer::start ( )

Starts raising the xtd::timers::timer::elapsed event by setting xtd::timers::timer::enabled to true.

Remarks
If xtd::timers::timer::start is called and xtd::timers::timer::auto_reset is set to false, the xtd::timers::timer raises the xtd::timers::timer::elapsed event only once, the first time the interval elapses. If xtd::timers::timer::start is called and xtd::timers::timer::auto_reset is true, the xtd::timers::timer raises the xtd::timers::timer::elapsed event the first time the interval elapses and continues to raise the event on the specified interval.
Note
If xtd::timers::timer::auto_reset is false, the xtd::timers::timer::start method must be called in order to start the count again.