Microsoft KB Archive/12131

{|
 * width="100%"|

How to Maintain Time, Independent of CPU Speed

 * }

Q12131

-

The information in this article applies to:


 * Microsoft C for MS-DOS, versions 6.0, 6.0a, and 6.0ax
 * Microsoft C/C++ for MS-DOS, versions 7.0, 7.0a
 * Microsoft Visual C++, versions 1.0, 1.5

-

To pause an application for a specific amount of time, independent of the CPU speed, create a routine that processes the timer tick interrupt. The frequency of timer ticks is the same all machines (approximately 18.2 per second when interrupts are enabled). The timer tick is Interrupt 1Ch.

Additional query words: kbinf 1.00 1.50 6.00 6.00a 6.00ax 7.00 7.00a

Keywords : kb16bitonly

Issue type :

Technology : kbVCsearch kbAudDeveloper kbPTProdChange kbvc150 kbvc100 kbZNotKeyword3 kbCVC700DOS kbCVC700aDOS