This class derived from ABA_TIMER implements a timer measuring the cpu time of parts of a program.
#include <cputimer.h>
Inheritance diagram for ABA_CPUTIMER::
|
After the application of the constructor the timer is not running, i.e., to measure time it has to be started explicitly.
The destructor.
This class derived from ABA_TIMER implements a timer measuring the cpu time of parts of a program.
Definition at line 38 of file cputimer.h.
After the application of the constructor the timer is not running, i.e., to measure time it has to be started explicitly.
This constructor initializes the total time of the timer.
The timer is not running, too.
The destructor.
Returns the used cpu time in 1 _ 100 seconds since the start of the program.
This function redefines the pure virtual function of the base class ABA_TIMER.
Since CLOCKS_PER_SEC can be 1000000 the standard library function clock() returns negative values after about than 35 minutes. Hence we measure the cpu time with the function times which is common on / systems, although not defined in the /-ANSI-standard.
Implements ABA_TIMER.
Definition at line 62 of file cputimer.h.
The documentation for this class was generated from the following file: