I have a timer in my code with an interval of 10 seconds.
When the time runs out, I will do some checking. It may take more than 10 seconds to check and some update tasks.
However, if I did not stop the timer, it seems that the check will be performed every 10 seconds. If I call stop() , the timer cannot be started again. eg:
protected void timer_elapsed(object sender, EventArgs args) { __timer.Stop();
I just want another 10 seconds to be checked again before the check is completed.
Can anyone help?
source share