Ed wrote:
For some reason when I use the code Sleep(1); which is supposed to be 1
millisecond I am seeing a delay of 10ms.
Any ideas??
I need a delay of about 1-1.5 ms.
You will find much more success by asking your question in a news group
related to your compiler or do a google for "high resolution sleep win32
msdn".
In general, if you need synchronization at intervals smaller than 10ms,
you're looking at some specialized functionality of the operating system
or the processor you're using and depending on your task, you may be
required to look at using a "real time" operating system.