|
size_t | counter_ |
| Number of performed time measurements.
|
|
double | start_ |
| Start of the current time measurement.
|
|
double | end_ |
| End of the current time measurement.
|
|
double | time_ |
| The total elapsed time of all measurements.
|
|
double | min_ |
| The minimal time of all measurements.
|
|
double | max_ |
| The maximal time of all measurements.
|
|
double | last_ |
| The last measured time.
|
|
double | total () const |
| Returns the total elapsed time of all performed time measurements. More...
|
|
double | average () const |
| Returns the average time of all performed time measurements. More...
|
|
double | min () const |
| Returns the minimal time of all performed time measurements. More...
|
|
double | max () const |
| Returns the maximal time of all performed time measurements. More...
|
|
double | last () const |
| Returns the last measured time. More...
|
|
template<typename TP>
class blaze::timing::Timer< TP >
Progress timer for time and performance measurements.
The Timer class offers timing & benchmarking functionality for all kinds of applications. The following example code demonstrates the use of the WcTimer class, which combines the Timer class template with the WcPolicy for wall clock time measurements, for a single time measurement:
...
timer.end();
double time = timer.last();
Timer< WcPolicy > WcTimer
Progress timer for wall clock time measurements.
Definition: WcTimer.h:66
The timer class additionally offers the functionality to start several time measurments in order to evaluate minimal, maximal or average times. The next example demonstrates a possible setup for such a series of time measurements:
...
for( unsigned int i=0; i<10; ++i ) {
timer.start();
...
timer.end();
}
double average() const
Returns the average time of all performed time measurements.
Definition: Timer.h:317