I'm currently creating a Windows Service which makes use of a timer interval. This timer repeats every second, but it could take longer than one second to finish Elapsed
event of the timer, which is created as following:
Timer timer = new Timer();
timer.Enabled = true;
timer.Interval = 1000; // 1 second
timer.Elapsed += myFunction;
Now the simple question: Does this timer continue even though it didn't finished the Elapsed
event yet, or does the timer wait and continue when the Elapsed
event finished?