35 #ifndef _BLAZE_UTIL_TIMING_TIMER_H_ 36 #define _BLAZE_UTIL_TIMING_TIMER_H_ 102 template<
typename TP >
113 explicit inline Timer();
140 inline double total()
const;
142 inline double min()
const;
143 inline double max()
const;
144 inline double last()
const;
175 template<
typename TP >
206 template<
typename TP >
210 start_ = TimingPolicy::getTimestamp();
223 template<
typename TP >
227 end_ = TimingPolicy::getTimestamp();
259 template<
typename TP >
286 template<
typename TP >
307 template<
typename TP >
320 template<
typename TP >
333 template<
typename TP >
346 template<
typename TP >
359 template<
typename TP >
Header file for basic type definitions.
double last() const
Returns the last measured time.
Definition: Timer.h:360
double last_
The last measured time.
Definition: Timer.h:155
double max_
The maximal time of all measurements.
Definition: Timer.h:154
size_t getCounter() const
Returns the total number of time measurements performed by this timer.
Definition: Timer.h:287
Header file for time functions.
const ElementType_< MT > max(const DenseMatrix< MT, SO > &dm)
Returns the largest element of the dense matrix.
Definition: DenseMatrix.h:1950
double start_
Start of the current time measurement.
Definition: Timer.h:150
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
TP TimingPolicy
Timing policy of the Timer.
Definition: Timer.h:107
double end_
End of the current time measurement.
Definition: Timer.h:151
void reset()
Resetting the timer.
Definition: Timer.h:260
double max() const
Returns the maximal time of all performed time measurements.
Definition: Timer.h:347
double total() const
Returns the total elapsed time of all performed time measurements.
Definition: Timer.h:308
double average() const
Returns the average time of all performed time measurements.
Definition: Timer.h:321
double min_
The minimal time of all measurements.
Definition: Timer.h:153
void end()
Ending a single time measurement.
Definition: Timer.h:224
size_t counter_
Number of performed time measurements.
Definition: Timer.h:149
void start()
Starting a single time measurement.
Definition: Timer.h:207
double min() const
Returns the minimal time of all performed time measurements.
Definition: Timer.h:334
Timer()
Constructor of the Timer class.
Definition: Timer.h:176
double time_
The total elapsed time of all measurements.
Definition: Timer.h:152
Progress timer for time and performance measurements.The Timer class offers timing & benchmarking fun...
Definition: Timer.h:103