Minimum practicle time for Timer Control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Im am using the timer control in a C# application and seem to be getting some
strange results relating to the timer event fire.

So whats the minimum practicle time for the fire? Is 20 milliseconds
practicle?
Failing that is there any way to measure when the event fires compared to
when it was ment to?
 
The Windows.Forms.Timer is innacurate due to its reliance on the message
pump but System.Threading.Timer is accurate and can reliably work down to
the 1 millisecond level. Remember though that if your service routine takes
more than a millisecond to complete you'll run into problems.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top