blog vipa
mój dzień to 3 filiżanki kawy

blog vipa

You are Browsing the Marzec 2007 Archive:

.NET C# Timers

Posted on Marzec 18th, 2007 by vip

The simplest method to add non-blocking ticker in C#: [csharp] 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); }[/csharp]