#include <cputimer.h>
Inheritance diagram for ABA_CPUTIMER:
Public Member Functions | |
ABA_CPUTIMER (ABA_GLOBAL *glob) | |
After the application of the constructor the timer is not running, i.e., to measure time it has to be started explicitly. | |
ABA_CPUTIMER (ABA_GLOBAL *glob, long centiSeconds) | |
virtual | ~ABA_CPUTIMER () |
The destructor. | |
Private Member Functions | |
virtual long | theTime () const |
Static Private Attributes | |
static long | clk_tck_ |
Definition at line 38 of file cputimer.h.
ABA_CPUTIMER::ABA_CPUTIMER | ( | ABA_GLOBAL * | glob | ) |
After the application of the constructor the timer is not running, i.e., to measure time it has to be started explicitly.
glob | A pointer to a global object. |
ABA_CPUTIMER::ABA_CPUTIMER | ( | ABA_GLOBAL * | glob, | |
long | centiSeconds | |||
) |
This constructor initializes the total time of the timer.
The timer is not running, too.
glob | A pointer to a global object. | |
centiSeconds | The intial value of the total time in ![]() |
virtual ABA_CPUTIMER::~ABA_CPUTIMER | ( | ) | [virtual] |
The destructor.
virtual long ABA_CPUTIMER::theTime | ( | ) | const [private, virtual] |
Returns the used cpu time in seconds since the start of the program.
This function redefines the pure virtual function of the base class ABA_TIMER.
Implements ABA_TIMER.
long ABA_CPUTIMER::clk_tck_ [static, private] |
Definition at line 62 of file cputimer.h.