Mail Archives: djgpp/1997/04/26/03:51:59
Roger Noss wrote:
>
> I am trying to follow the many recommendations to use uclock() but am
> getting inconsistent results. I am working in a DOS window of WinNT3.51 on
> a 200MHz Pentium Pro.
Don't have the answer, but a few observations:
- printf of uninitialized t0 is puzzling
- use of short ints on Pentiums is expensive (more CPU cycles)
- Since uclock messes with the timer hardware, I am surprised NT
doesn't barf. Uclock has no error return code. Maybe uclock
just fails on NT and is returning garbage?
- for best timing, should make sure dt[] is in cache before
using it to record results, otherwise cache misses will
confuse timing. Just clear it to zero or something.
regards, tom
- Raw text -