Timing Code Segments

The class CTimer below is used to time segments of code. You can time one statement repeatedly, or several statements once. The demo program shows one simple use.

Classes Needed

Sample program (Fibonacci) using these classes:

  • fibtest.cpp

    Owen L. Astrachan
    Last modified: Thu Oct 19 13:30:11 EDT 2000