what is the timing accuracy of windows apps?

tart666

Golden Member
May 18, 2002
1,289
0
0
is it possible to control events to 10ms accuracy? I have a shutter controller connected by RS232 (9600b) that I would like to control the timing of.

The code is written in VB6, so, naturally i have concerns with timing repeatability... Let's say i can start a timing thread with highest CPU priority, what are the chances of the timing being accurate under various CPU loads?
 

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
Originally posted by: Kntx
bout 5ms accuracy.

You can get modifications for the NT kernal that will bring you to an even tighter accuracy if needed.

Easiest way to test you system is to right a timer function that fires off at a set frequency. set the test program to a high priority and run a counter in the handler.
If the counter matches the expected frequency, you are golden at that freq. Tighten up the timer until you determine the limit.

Remember that only your test app should be running.
In the real world, you may wish to incres the process priority if you are concerned about hitting the turn around mark.