35 #ifndef _BLAZE_UTIL_TIMING_TIMER_H_ 36 #define _BLAZE_UTIL_TIMING_TIMER_H_ 102 template<
typename TP >
113 explicit inline Timer();
136 inline double total()
const;
138 inline double min()
const;
139 inline double max()
const;
140 inline double last()
const;
171 template<
typename TP >
177 , min_ (
std::numeric_limits<double>::
max() )
202 template<
typename TP >
206 start_ = TimingPolicy::getTimestamp();
219 template<
typename TP >
223 end_ = TimingPolicy::getTimestamp();
229 const double diff(
end_ - start_ );
235 if( diff < min_ ) min_ = diff;
238 if( diff > max_ ) max_ = diff;
255 template<
typename TP >
282 template<
typename TP >
303 template<
typename TP >
316 template<
typename TP >
319 return time_ / counter_;
329 template<
typename TP >
342 template<
typename TP >
355 template<
typename TP >
Header file for basic type definitions.
double last() const
Returns the last measured time.
Definition: Timer.h:356
double last_
The last measured time.
Definition: Timer.h:151
double max_
The maximal time of all measurements.
Definition: Timer.h:150
size_t getCounter() const
Returns the total number of time measurements performed by this timer.
Definition: Timer.h:283
Header file for time functions.
double start_
Start of the current time measurement.
Definition: Timer.h:146
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
TP TimingPolicy
Timing policy of the Timer.
Definition: Timer.h:107
Iterator * end_
Pointers one past the last non-zero element of each column.
Definition: CompressedMatrix.h:3293
double end_
End of the current time measurement.
Definition: Timer.h:147
void reset()
Resetting the timer.
Definition: Timer.h:256
double max() const
Returns the maximal time of all performed time measurements.
Definition: Timer.h:343
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:1179
double total() const
Returns the total elapsed time of all performed time measurements.
Definition: Timer.h:304
double average() const
Returns the average time of all performed time measurements.
Definition: Timer.h:317
double min_
The minimal time of all measurements.
Definition: Timer.h:149
void end()
Ending a single time measurement.
Definition: Timer.h:220
size_t counter_
Number of performed time measurements.
Definition: Timer.h:145
void start()
Starting a single time measurement.
Definition: Timer.h:203
double min() const
Returns the minimal time of all performed time measurements.
Definition: Timer.h:330
Timer()
Constructor of the Timer class.
Definition: Timer.h:172
double time_
The total elapsed time of all measurements.
Definition: Timer.h:148
Progress timer for time and performance measurements.The Timer class offers timing & benchmarking fun...
Definition: Timer.h:103