Mail Archives: djgpp/1998/08/27/22:32:46
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 -