Sender: nate AT cartsys DOT com Message-ID: <35E606F5.844DA7A1@cartsys.com> Date: Thu, 27 Aug 1998 18:25:09 -0700 From: Nate Eldredge MIME-Version: 1.0 To: Endlisnis CC: djgpp AT delorie DOT com Subject: Re: Game loop References: <6s2mth$c70$1 AT towncrier DOT cc DOT monash DOT edu DOT au> <35E56969 DOT 8B2E05F3 AT unb DOT ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Endlisnis wrote: > > Robert Clayton wrote: > > > I'm using the standard dos timing function to return a time at the > > start of my loop and then a time at the end of my loop. > > > > If not enough time has passed I wait. > > > > The problem is, one time unit is still too slow. How can I test in > > smaller units? > > I've included an H file that I made from information gathered here. It > counts the number of clock-cycles used during some routine. After > including it, you can do somethign like this: Be aware this will only work on a Pentium; many clones won't. -- Nate Eldredge nate AT cartsys DOT com