Machine-Independent Delay Technique
Original Publication Date: 1987-Mar-01
Included in the Prior Art Database: 2005-Feb-01
A method is described which delays the system for the same time interval on any type of machine. This method provides a technique that can be used in any PC DOS program to delay execution for a certain period of time, and the delay time is independent of the speed of the processor used in the PC. In accordance with this method the BIOS Time-of-Day function call is used to read the current clock setting in a loop until the desired delay time has expired. The logic is as follows: Read the current clock count (by issuing BIOS call Time-of-Day). Set the target count equal to the current clock count plus the delay count. Loop reading the current clock count until it is the same or greater than the target count.