class derived from ABA_TIMER implements a timer measuring the elpased time (clock-of-the-wall time) of parts of the program.
#include <cowtimer.h>
Inheritance diagram for ABA_COWTIMER::
|
After the application of the constructor the timer is not running, i.e., to measure time it has to be started explicitly.
Returns the wall clock time since the initialization of the timer in 1 _ 100 seconds.
Stores the result of a call to the function time(NULL) at construction time.
class derived from ABA_TIMER implements a timer measuring the elpased time (clock-of-the-wall time) of parts of the program.
Definition at line 37 of file cowtimer.h.
After the application of the constructor the timer is not running, i.e., to measure time it has to be started explicitly.
We initialize base time with the current time, such that later we can convert the time to 1 _ 100 seconds without arithmetic overflow. The function time() is defined in the standard /-library.
This constructor initializes the total time of the timer.
The timer is not running, too.
The destructor.
Returns the wall clock time since the initialization of the timer in 1 _ 100 seconds.
This function redefines the pure virtual function of the base class ABA_TIMER.
The function theTime() uses the function times(), which returns the elapsed real time in clock ticks.
Implements ABA_TIMER.
Stores the result of a call to the function time(NULL) at construction time.
We require this member such that we can return the time in centiseconds correctly in the function theTime(). Otherwise, an arithmetic overflow can occur.
Definition at line 85 of file cowtimer.h.
The documentation for this class was generated from the following file: