www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/27/22:32:46

Sender: nate AT cartsys DOT com
Message-ID: <35E606F5.844DA7A1@cartsys.com>
Date: Thu, 27 Aug 1998 18:25:09 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
MIME-Version: 1.0
To: Endlisnis <s257m AT unb DOT ca>
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>

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


- Raw text -


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