Controlling a timed test

You should use TTimingTest to achieve the highest precision for your tests. If you need to perform more elaborate tests than TTimingTest allows, you can use TStartStopTimingTest. This class gives you explicit control over the timing of events; you sacrifice some precision, however.

The StartStopTimingTest member function of TStartStopTimingTest allows you to start the timer, perform the timed operation, and then stop the timer. You can start and stop the timer more than once. The ability to start and stop the timer reduces the precision of the timing to the millisecond scale.


[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