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 >
181 , min_ ( std::numeric_limits<double>::max() )
206 template<
typename TP >
210 start_ = TimingPolicy::getTimestamp();
223 template<
typename TP >
227 end_ = TimingPolicy::getTimestamp();
233 const double diff(
end_ - start_ );
239 if( diff < min_ ) min_ = diff;
242 if( diff > max_ ) max_ = diff;
259 template<
typename TP >
266 min_ = std::numeric_limits<double>::max();
286 template<
typename TP >
307 template<
typename TP >
320 template<
typename TP >
323 return time_ / counter_;
333 template<
typename TP >
346 template<
typename TP >
359 template<
typename TP >
double last_
The last measured time.
Definition: Timer.h:155
double max_
The maximal time of all measurements.
Definition: Timer.h:154
Header file for time functions.
double total() const
Returns the total elapsed time of all performed time measurements.
Definition: Timer.h:308
double max() const
Returns the maximal time of all performed time measurements.
Definition: Timer.h:347
double start_
Start of the current time measurement.
Definition: Timer.h:150
Iterator * end_
Pointers one past the last non-zero element of each column.
Definition: CompressedMatrix.h:2515
double end_
End of the current time measurement.
Definition: Timer.h:151
double last() const
Returns the last measured time.
Definition: Timer.h:360
void reset()
Resetting the timer.
Definition: Timer.h:260
TP TimingPolicy
Timing policy of the Timer.
Definition: Timer.h:107
double min() const
Returns the minimal time of all performed time measurements.
Definition: Timer.h:334
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
double average() const
Returns the average time of all performed time measurements.
Definition: Timer.h:321
void start()
Starting a single time measurement.
Definition: Timer.h:207
Header file for basic type definitions.
size_t getCounter() const
Returns the total number of time measurements performed by this timer.
Definition: Timer.h:287
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