Go to the documentation of this file.
21 #ifndef __Timerr_hpp__
22 #define __Timerr_hpp__
37 using timer = std::chrono::high_resolution_clock;
114 auto end = timer::now();
116 std::chrono::duration_cast<std::chrono::duration<real> >(
191 #endif //__Timer_hpp__
real accTimersTotalMax() const
word name_
name for the timer
virtual void removeParrent()
int32 numIteration_
number of times start() and end() are called
virtual bool write(iOstream &os, bool subTree) const
T max(const internalField< T, MemorySpace > &iField)
real stepAccTime_
Accumulative duration for multiple steps between start() and end()
timer::time_point start_
start time
Timers * parrent_
parrent of timer
Interface class for any input stream
real lastTime_
last time duration
INLINE_FUNCTION iIstream & operator>>(iIstream &str, AB3History &ab3)
auto count(const Vector< T, Allocator > &vec, const T &val)
INLINE_FUNCTION iOstream & operator<<(iOstream &str, const AB3History &ab3)
virtual int32 level() const
real accTime_
sum of time duratios (in seconds) between all start() and end() calls
const word & name() const
virtual bool master() const
virtual real accTimersTotal() const
virtual bool read(iIstream &is)
std::chrono::high_resolution_clock timer
real averageTimeMax() const
Interface class for any output stream.