C# dynamically shorten interval of Timer -


still getting head wrapped around timers in c# lot more powerful in as3. need call method @ shorter , shorter intervals. once second in beginning, gradually shorter intervals until maybe calling method 100x second. i've used coroutines pretty sure need actual timer object. can or point in right direction?

you can start example:

system.timers.timer t = new system.timers.timer();      public void timersetup()     {         t.interval = 1000;         t.elapsed += elapsedmethod;         t.start();     }      public void elapsedmethod(object sender, system.timers.elapsedeventargs e)     {         //do stuff         t.interval = t.interval - 5; //however want reduce.     } 

you have determine conditions need reducing timer interval, , when it, should give start.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -