delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/02/05:51:38

From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
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: <tckh2t4smoc33714a06rfb81c3c3h7qg3u@4ax.com>
References: <3A28CE65 DOT 69D56CA4 AT es DOT co DOT nz>
NNTP-Posting-Host: modem-155.indium.dialup.pol.co.uk
Mime-Version: 1.0
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 <chrisr AT es DOT co DOT nz> 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019