I created a Timer
private static AutoResetEvent autoEvent;
private static Timer stateTimer;
public static void Start()
{
autoEvent = new AutoResetEvent(false);
TimerCallback timerDelegate = new TimerCallback(SomeClass.TimerLoad);
stateTimer = new Timer(timerDelegate, autoEvent, 1000, 3 * 60 * 60 * 1000);
}
from other procedure I change timer:
stateTimer.Change(0, 5 * 60 * 1000);
now, I need to know what is the interval, is there any appropiate instruction for that ?
Use System.Timers.Timer instead, that has an interval property.
http://msdn.microsoft.com/en-us/library/system.timers.timer.aspx