35#ifndef _BLAZE_UTIL_TIMING_TIMER_H_
36#define _BLAZE_UTIL_TIMING_TIMER_H_
102template<
typename TP >
136 inline double total()
const;
138 inline double min()
const;
139 inline double max()
const;
140 inline double last()
const;
171template<
typename TP >
177 , min_ ( std::numeric_limits<double>::
max() )
202template<
typename TP >
206 start_ = TimingPolicy::getTimestamp();
219template<
typename TP >
223 end_ = TimingPolicy::getTimestamp();
229 const double diff( end_ - start_ );
235 if( diff < min_ ) min_ = diff;
238 if( diff > max_ ) max_ = diff;
255template<
typename TP >
282template<
typename TP >
303template<
typename TP >
316template<
typename TP >
319 return time_ / counter_;
329template<
typename TP >
342template<
typename TP >
355template<
typename TP >
Header file for time functions.
Progress timer for time and performance measurements.
Definition: Timer.h:104
double end_
End of the current time measurement.
Definition: Timer.h:147
double max() const
Returns the maximal time of all performed time measurements.
Definition: Timer.h:343
TP TimingPolicy
Timing policy of the Timer.
Definition: Timer.h:107
double average() const
Returns the average time of all performed time measurements.
Definition: Timer.h:317
void end()
Ending a single time measurement.
Definition: Timer.h:220
double min() const
Returns the minimal time of all performed time measurements.
Definition: Timer.h:330
size_t getCounter() const
Returns the total number of time measurements performed by this timer.
Definition: Timer.h:283
double start_
Start of the current time measurement.
Definition: Timer.h:146
Timer()
Constructor of the Timer class.
Definition: Timer.h:172
double last_
The last measured time.
Definition: Timer.h:151
double time_
The total elapsed time of all measurements.
Definition: Timer.h:148
double min_
The minimal time of all measurements.
Definition: Timer.h:149
void reset()
Resetting the timer.
Definition: Timer.h:256
size_t counter_
Number of performed time measurements.
Definition: Timer.h:145
double last() const
Returns the last measured time.
Definition: Timer.h:356
void start()
Starting a single time measurement.
Definition: Timer.h:203
double total() const
Returns the total elapsed time of all performed time measurements.
Definition: Timer.h:304
double max_
The maximal time of all measurements.
Definition: Timer.h:150
decltype(auto) max(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Computes the componentwise maximum of the dense matrices lhs and rhs.
Definition: DMatDMatMapExpr.h:1375
Header file for basic type definitions.