Главная страница | назад

Article #15568: Delay() resolution inconsistencies

 Question and Answer Database

FAQ568C.txt   Delay() resolution inconsistencies
Category   :C/C++ Language Issues
Platform    :DOS
Product    :   BC++4.5x   BC++5.x   TC++Dos3.0


The Delay() function is suposed to be accurate down to 1 ms,
however, I am getting errors within 1/18th sec. when I use it.


The delay function relies on the real-time-clock, which, by 
default, clicks at 18 hz (cycles per second.)  In order to get a 1 ms
accuracy, the clock has to be set to 100hz or greater.

7/2/98 10:32:32 AM

Last Modified: 01-SEP-99