.Net Timer and Processor clock speed?

wainwrightwt

New member
Joined
Jul 8, 2005
Messages
2
I have a user that has writen a VB App using a timer to control events. They require millisecond accuracy for everything to work correctly. They are currently using a laptop (dell latitude c640) with speedstep set to "maximum performance". They say this has been working fine, but there can be issues if the laptop processor slows down, and therefore is sending fewer clock steps per second. They are planning on upgrading to a dell latitude d505 laptop controlled by the speedstep feature.

So, the question is, does the VB timer depend on the clock step? And if so, is there a way to deal with the slowing down of the clock step? Or is there an alternate solution (VB or .Net) that does not depend on clock step?

Sorry if any of this sounds confusing. I am a web developer, and dont know much of clock step and the like. Thanks for any help!
 
Well, I would say that if the clock on your computer slowed down, then, yes, because everything depends on the timer and how often you execute stuff... however, I dont see why slowing down is such an issue if you only need millisecond accuracy... unless you are doing quite a few calculations or have other processes running on the computer, this shouldnt even be a concern... unless the clock is REALLY slowing down.
What kind of timer are you using that is giving you millisecond accuracy? Its possible that a cycle could have been skipped.

P.S.: Please post your question only once.
 
Unfortunately I had no involvment in the VB app, so I dont know exactly whats going on, but I would assume the user is using a VB timer control/function. The only thing I could see being a problem is that if for some reason, when the timer initializes, it determins the number of clock steps that are being sent per second and uses that to determine how long 1 millisecond is. Then, if the clock steps were to change, it would through off the timer. Could this at all be possilbe? If not, the I would think the timmer would be accurate. Thanks!

PS. Sorry about the multiple posts, I wasnt sure if this would be viewed much in the "Random" section.
 
Back
Top