From: Jason Green Newsgroups: comp.os.msdos.djgpp Subject: Re: timer or wait function Date: Sat, 02 Dec 2000 10:49:07 +0000 Organization: Customer of Energis Squared Lines: 11 Message-ID: References: <3A28CE65 DOT 69D56CA4 AT es DOT co DOT nz> NNTP-Posting-Host: modem-155.indium.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news5.svr.pol.co.uk 975754148 16731 62.136.40.155 (2 Dec 2000 10:49:08 GMT) NNTP-Posting-Date: 2 Dec 2000 10:49:08 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Forte Agent 1.7/32.534 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Chris wrote: > I need to implement a wait or pause of a definite duration into one of > my programs. Using a loop of some sort to create a pause just won't cut > it as it runs at different speeds on different machine. Anyone know of > a function and the corresponding header file? There are several such functions in the DJGPP library: delay(), sleep(), usleep() and others. `info libc' for more details. Section 22.27 of the FAQ has some useful tips too.