QuestionTimer Interval

Posts 14 of 4 · Page 1 of 1
Timer Interval
Hey guys, Is it possible to change timer.interval to lower than 1?
Quote Originally Posted by XXkillerFin1 View Post
Hey guys, Is it possible to change timer.interval to lower than 1?
Yes, and No.

Timers.Timer has an Interval that is declared as Double. Msdn says "value must be greater than 0" -- I test with 0.01 and it works.

Windows.Forms.Timer (which is what you get when you drag a Timer control onto your form) has an Interval that is Integer. No decimal places.



-I'm not sure setting it any smaller will actually achieve what you want. If you want it to run as fast as physically possible, use a background Thread.
Quote Originally Posted by abuckau907 View Post
Yes, and No.

Timers.Timer has an Interval that is declared as Double. Msdn says "value must be greater than 0" -- I test with 0.01 and it works.

Windows.Forms.Timer (which is what you get when you drag a Timer control onto your form) has an Interval that is Integer. No decimal places.



-I'm not sure setting it any smaller will actually achieve what you want. If you want it to run as fast as physically possible, use a background Thread.
Ok, Thanks for information + Thanked
Measuring less than one millisecond on Windows is impossible.
However, It is not the speed which does not allow it, times are in ticks which is in Windows a 100th nano second.
But Windows is a multi tasking OS, which means that the processor is not always busy with the process the timer is handled in.
Posts 14 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?