Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need a faster timer in VB6

Status
Not open for further replies.

acjeff

Programmer
Aug 10, 2004
148
US
Hi,

If I use a timer control on a form in VB6, I know the smallest time interval is 1 ms. However, if I want something to be faster than that, say 0.1 ms or even faster, is it possible to do that?

Jeff
 
I am NOT sure, but I can assure you that the event procedure(s) need to be inconsequential, and even then the app will be impacted greatly.





MichaelRed


 
There has been discussion on this forum before that has proven that even if you set the interval to 1 there is no way that the processor can actually keep up with that. I don't remember exactly what that threshold was. If memory serves correctly (and it's processor dependent) it was somewhere around the 50's...
 
>it's processor dependent

It is OS dependant.

>I want something to be faster

Sure. There are higher resolution timers than the system timer (which is what VB's Timer is derived from). As bjd4c comments, this has come up a number of times in the forum. Try a keyword search. If you cannot find what you are looking for, post here again and we'll try to help further

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top