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

◆ timer() [2/3]

xtd::timers::timer::timer ( double  interval)
explicit

Initializes a new instance of the xtd::timers::timer class, and sets the xtd::timers::timer::interval property to the specified number of milliseconds.

Parameters
intervalThe time, in milliseconds, between events. The value must be greater than zero and less than or equal to int32_object::max_value.
Exceptions
d::argument_exceptionThe value of the interval parameter is less than or equal to zero, or greater than int32_object::max_value.
Remarks
This constructor sets the xtd::timers::timer::interval property of the new timer instance, but does not enable the timer.