marzec 18, 2007 | 13:55
The simplest method to add non-blocking ticker in C#:
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);
-
}
Czytaj resztę wpisu »
Posted w
dev |
Brak komentarzy »