Browse Prior Art Database

Machine-Independent Delay Technique

IP.com Disclosure Number: IPCOM000038862D
Original Publication Date: 1987-Mar-01
Included in the Prior Art Database: 2005-Feb-01
Document File: 1 page(s) / 11K

Publishing Venue

IBM

Related People

Lovell, CJ: AUTHOR [+3]

Abstract

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.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 100% of the total text.

Page 1 of 1

Machine-Independent Delay Technique

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. Since the condition for exiting the loop is not related to the processor speed of a machine, the delay time is machine-independent.

1