If you really need full 64-bit counter, Create a
type of union between two 32-bit values and a 64-bit value. You can do
addition and subtraction between 64-bit values. For averages, try using powers
of two for N samples and then use shr on the 64-bit value to derive an
average.
You could also use the 32-bit equivalent of rtdsc
if you don't need to deal with too many ticks between samples.
Stuart
|