Timing tests

TTimingTest, a base class, provides a basic guide for tests that measure the time a specific operation takes to complete. TTimingTest contains three framework members: TimingSetup, TimingTest, and TimingCleanup.

Only the TimingTest member function is timed. The TimingSetup and TimingCleanup members are run before and after TimingTest, but are not timed themselves. TTimingTest measures events at the microsecond scale and produces a statistical analysis of results.

TStartStopTimingTest is an abstract class derived from TTimingTest. Use TStartStopTimingTest to perform timing measurements too complicated to achieve with TTimingTest.

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