I\'m using a System.Timers.Timer in my application. Every second I run a function which does some job. The thing is, this function can block for some little tim
System.Timers.Timer
If you want to skip the tick if another is already working you can do this.
private readonly object padlock = new object(); private void SomeMethod() { if(!Monitor.TryEnter(padlock)) return; try { //Do heavy work } finally { Monitor.Exit(padlock); } }