Accuracy

Calls to the TimingTest member function incur some overhead due to the time required to make the virtual function call. TTimingTest compensates for this by computing an empty method time, which is the estimated time to make a call to an empty virtual member function. This time is subtracted from each sample time in order to calibrate for this overhead.

Another way to increase the accuracy of timing tests is to increase the timing count because various sources of error are divided by the timing count and are spread out across many iterations. In general, the value of the timing count should be at least 100.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker