+ 1

Timer

How do you create a timer in C#? And make it do something whenever that timer ends?

8th Apr 2017, 7:49 PM
John Devaule
2 Respostas
+ 5
If I can understand what you say(my english is terrible, sorry), you can use these: System.Threading.Thread.Sleep(milisec); or StopWatch Feel free to correct me, if I made any mistake.
9th Apr 2017, 3:27 PM
Ákos Nagy
Ákos Nagy - avatar
0
You can use Timer class, it has a very useful methods Timer time = new Timer(); time.Start(); ... time.Stop();
11th Apr 2017, 9:10 AM
Jorge Escamilla
Jorge Escamilla - avatar