From: Charles Sandmann Newsgroups: comp.os.msdos.djgpp Subject: Re: delay call under XP Date: Mon, 17 Feb 2003 19:43:44 CST Organization: Rice University, Houston TX Lines: 17 Message-ID: <3e518fd0.sandmann@clio.rice.edu> References: NNTP-Posting-Host: clio.rice.edu X-Trace: joe.rice.edu 1045532914 8544 128.42.105.3 (18 Feb 2003 01:48:34 GMT) X-Complaints-To: abuse AT rice DOT edu NNTP-Posting-Date: 18 Feb 2003 01:48:34 GMT X-NewsEditor: ED-1.5.9 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > Now i aquired a new machine running XP home and tried to > move my applications. The first step was update to 2.03, which solved > most problems, but one remains: delay does not work any more. The > function returns immediately regardless of the argument i > provide. After a look into the source I gave up: delay.c runs: Can you live with 55ms resolution? If so, try the following file from the current CVS/2.04wip tree: http://www.delorie.com/bin/cvsweb.cgi/djgpp/src/libc/dos/dos/delay.c?rev=1.2 Take this file, compile it and see if it works for you. If it does, then insert it into your library libc.a It has recently been suggested that we use RDTSC to get higher resolution for uclock() and delay() - but this isn't coded or tested yet.