.NET C# Timers
Posted on Marzec 18th, 2007 by vipThe simplest method to add non-blocking ticker in C#:
PLAIN TEXT
C#:
using System.Threading;
…
public Clock()
{
System.Threading.Timer tmrThreadingTimer = new
System.Threading.Timer(new
TimerCallback(tmrThreadingTimer_TimerCallback),
null, System.Threading.Timeout.Infinite, 1000);
tmrThreadingTimer.Change(0, 1000);
}

