Reputation: 13434
i need to call thread for every 3 sec in my application. From thread i need to call a function. how can i do this in c#? i need to call that thread only because when i call it thread it will not affect my process?. In that function i am going to check if particular process going on or not?
how to call method in System.timers timer ?
Upvotes: 0
Views: 519
Reputation: 25799
I think you want to use a Timer rather than a Thread.
If this is a GUI application then you'll want the System.Windows.Forms.Timer if its not then you could use Sytem.Timers.Timer.
Upvotes: 3