22 #ifndef _BLAZE_UTIL_TIMING_TIMER_H_
23 #define _BLAZE_UTIL_TIMING_TIMER_H_
89 template<
typename TP >
100 explicit inline Timer();
127 inline double total()
const;
129 inline double min()
const;
130 inline double max()
const;
131 inline double last()
const;
162 template<
typename TP >
168 , min_ ( std::numeric_limits<double>::
max() )
193 template<
typename TP >
197 start_ = TimingPolicy::getTimestamp();
210 template<
typename TP >
214 end_ = TimingPolicy::getTimestamp();
220 const double diff( end_ - start_ );
226 if( diff < min_ ) min_ = diff;
229 if( diff > max_ ) max_ = diff;
246 template<
typename TP >
273 template<
typename TP >
294 template<
typename TP >
307 template<
typename TP >
310 return time_ / counter_;
320 template<
typename TP >
333 template<
typename TP >
346 template<
typename TP >