benlogan1981
Programmer
Why can I not get my .net c# program to execute a function every MS. Using the timers here...
Why if I run a timer over 20 seconds and try to increment a counter every millisecond does the timer end up at about 1300 instead of about 20,000 ?? I can't my head round this at all. The MSDN demo available from that link is quite interesting.
It prints a statement at every 'tick', yet with the timer set to an interval of 1ms it prints out roughly 45 lines every second, instead of around 1000.
I am missing something really obvious here - this is causing me a real headache.
Any help would be much appreciated.
Why if I run a timer over 20 seconds and try to increment a counter every millisecond does the timer end up at about 1300 instead of about 20,000 ?? I can't my head round this at all. The MSDN demo available from that link is quite interesting.
It prints a statement at every 'tick', yet with the timer set to an interval of 1ms it prints out roughly 45 lines every second, instead of around 1000.
I am missing something really obvious here - this is causing me a real headache.
Any help would be much appreciated.