Windows.System.Threading.ThreadPoolTimer.CreatePeriodicTimer

December 16, 2020 ยท View on GitHub

-description

Creates a periodic timer.

-parameters

-param handler

The method to call when the timer expires.

-param period

The amount of time until the timer expires. The timer reactivates each time the period elapses, until the timer is canceled.

C++ This amount of time is specified in ticks (100-nanosecond units) using the Windows::Foundation::TimeSpan structure.

JavaScript and C# This amount of time is specified using the System.TimeSpan structure. It can be specified in ticks, or it can be specified in milliseconds, seconds, and so on.

-returns

An instance of a periodic timer.

-remarks

-examples

-see-also

CreatePeriodicTimer(TimerElapsedHandler, TimeSpan, TimerDestroyedHandler)