xtd::threading::timer::timer | ( | const timer_callback & | callback, |
int64 | due_time, | ||
int64 | period | ||
) |
Initializes a new instance of the timer class, using a 64-bit signed integer to specify the time interval.
callback | the address of a method to be executed |
due_time | The amount of time to delay before callback is invoked, in milliseconds. Specify Timeout::Infinite to prevent the timer from starting. Specify zero (0) to start the timer immediately. |
period | The time interval between invocations of callback, in milliseconds. Specify Timeout::Infinite to disable periodic signaling. |
ArgumentNullException | The callback is null. |
xtd::argument_out_of_range_exception | The due_time or period parameter is negative and is not equal to Timeout::Infinite. |