From: Kai Dietrich Newsgroups: comp.os.msdos.djgpp Subject: replace uclock Date: Sun, 17 Dec 2000 08:35:32 +0100 Organization: T-Online Lines: 30 Message-ID: <3A3C6CC4.FB66D72C@t-online.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.t-online.com 977038688 07 10053 UJycVdTSUYwZ9 001217 07:38:08 X-Complaints-To: abuse AT t-online DOT com X-Sender: 320009961467-0001 AT t-dialin DOT net X-Mailer: Mozilla 4.6 [de]C-CCK-MCD QXW03200 (Win95; I) X-Accept-Language: de,en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi! I'm using uclock to control the framerate of my little game (not written with allegro). But I also use MIDAS Digital Audio System which causes uclock not to work, so the framerate is'nt correct. My question: Is there any replacment for uclock which works also with MIDAS? TIA Bye Kai void mainloop(void) { uclock_t start; float delay; delay= xdelay*0.0006*UCLOCKS_PER_SEC; for(;;) { start= uclock(); . .//do some work . while((uclock()-start) < delay); } }