BTW … there is a INT96 class on the net somewhere … I’m sure it tested the times to do various calulations using a normal integer, a float, a double and the 96 bit integer … if memory serves, there was bugger all difference between using doubles and floats!

Try various routines using floats and doubes, and time them - I think you’ll find that the time saving over MANY itterations would not be that significant … not sure though, haven’t tried it.

For what it’s worth, there is an interesting little program on nvidia’s web site which times how long it takes to execute various timing functions … the results are quite interesting … Here’s the output from my machine (PII 350)

Report file for timing the various timers.

*** Key number is the avg time.

The smaller this number, the faster the timer.

QueryPerformanceFrequency() freq = 0 1193182

method 0:

QueryPerfCntr…() 100 times

tot: 0 498

avg: 4.980000

avg time: 4.17371e-006

method 0:

QueryPerfCntr…() 500 times

tot: 0 2466

avg: 4.932000

avg time: 4.13349e-006

method 0:

QueryPerfCntr…() 1000 times

tot: 0 5147

avg: 5.147000

avg time: 4.31368e-006

method 0:

QueryPerfCntr…() 10000 times

tot: 0 49666

avg: 4.966600

avg time: 4.16248e-006

method 1:

GetTickCount() 100 times

tot: 0 9

avg: 0.090000

avg time: 7.54286e-008

method 1:

GetTickCount() 500 times

tot: 0 22

avg: 0.044000

avg time: 3.68762e-008

method 1:

GetTickCount() 1000 times

tot: 0 38

avg: 0.038000

avg time: 3.18476e-008

method 1:

GetTickCount() 10000 times

tot: 0 338

avg: 0.033800

avg time: 2.83276e-008

method 2:

TimeGetTime() 100 times

tot: 0 52

avg: 0.520000

avg time: 4.35809e-007

method 2:

TimeGetTime() 500 times

tot: 0 170

avg: 0.340000

avg time: 2.84952e-007

method 2:

TimeGetTime() 1000 times

tot: 0 336

avg: 0.336000

avg time: 2.816e-007

method 2:

TimeGetTime() 10000 times

tot: 0 3320

avg: 0.332000

avg time: 2.78248e-007

method 3:

Pentium internal high-freq cntr() 100 times

tot: 0 16

avg: 0.160000

avg time: 1.34095e-007

method 3:

Pentium internal high-freq cntr() 500 times

tot: 0 60

avg: 0.120000

avg time: 1.00571e-007

method 3:

Pentium internal high-freq cntr() 1000 times

tot: 0 114

avg: 0.114000

avg time: 9.55428e-008

method 3:

Pentium internal high-freq cntr() 10000 times

tot: 0 1101

avg: 0.110100

avg time: 9.22743e-008

WOW - I’ve just noticed i’ve been promoted to Frequent Contributor!

[This message has been edited by Shag (edited 11-09-2001).]