Mail Archives: djgpp/1998/08/30/02:30:49
Nate Eldredge wrote:
>
> 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.
However, if it does work, it is about 2 zillion times better than
uclock. So is there some way of checking whether you are running on a
pentium?
- Raw text -