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

◆ change() [3/4]

void xtd::threading::timer::change ( const time_span due_time,
const time_span period 
)

changes the start time and the interval between method invocations for a timer, using time_span values to measure time intervals.

Parameters
due_timeThe 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.
periodThe time interval between invocations of callback, in milliseconds. Specify Timeout::Infinite to disable periodic signaling.
Exceptions
ArgumentNullExceptionThe due_time or period param is null.
xtd::argument_out_of_range_exceptionThe due_time or period parameter is negative and is not equal to Timeout::Infinite.