Show / Hide Table of Contents

Method timer.After


Overload

Starts one-time timer. If already started, resets and changes its period.

public void After(int milliseconds)
Parameters
milliseconds  (int)

Time interval after which to call the callback function. The actual minimal interval is 10-20 ms.

Exceptions
ArgumentOutOfRangeException

Negative.

InvalidOperationException

Called not in the same thread as previous Start.

Win32Exception

API SetTimer returned 0. Unlikely.

Remarks

The timer will be stopped before calling the callback function. The callback function can start it again. If already started, this function must be called in the same thread as when started.