Inheritance diagram for Timer:
Collaboration diagram for Timer:Public Member Functions | |
| TypeInfo ("Timer") | |
| Timer ()=default | |
| Timer (const word &name) | |
| Timer (const word &name, Timers *parrent) | |
| const word & | name () const |
| virtual | ~Timer () |
| virtual void | removeParrent () |
| virtual int32 | level () const |
| virtual bool | master () const |
| Timers * | parrent () const |
| void | start () |
| void | pause () |
| void | resume () |
| void | end () |
| bool | timerActive () const |
| real | lastTime () const |
| real | totalTime () const |
| real | averageTime () const |
| virtual real | accTimersTotal () const |
| virtual bool | write (iOstream &os, bool subTree) const |
| virtual bool | read (iIstream &is) |
Protected Member Functions | |
| real | averageTimeMax () const |
| real | accTimersTotalMax () const |
Private Types | |
| using | timer = std::chrono::high_resolution_clock |
Private Attributes | |
| timer::time_point | start_ |
| start time More... | |
| int32 | numIteration_ = 0 |
| number of times start() and end() are called More... | |
| real | accTime_ = 0.0 |
| sum of time duratios (in seconds) between all start() and end() calls More... | |
| real | lastTime_ = 0.0 |
| last time duration More... | |
| real | stepAccTime_ = 0.0 |
| Accumulative duration for multiple steps between start() and end() More... | |
| word | name_ = "noNameTimer" |
| name for the timer More... | |
| Timers * | parrent_ = nullptr |
| parrent of timer More... | |
|
default |
Definition at line 35 of file Timer.cpp.
References Timers::addToList(), and Timer::parrent_.
Here is the call graph for this function:
|
protected |
Definition at line 25 of file Timer.cpp.
Referenced by MPITimer::averageTimeMax().
Here is the caller graph for this function:
|
protected |
Definition at line 30 of file Timer.cpp.
Referenced by MPITimer::totalTimeMax().
Here is the caller graph for this function:| TypeInfo | ( | "Timer" | ) |
|
inline |
Definition at line 80 of file Timer.hpp.
References Timer::name_.
Referenced by Timers::addTimer().
Here is the caller graph for this function:
|
inlinevirtual |
Definition at line 87 of file Timer.hpp.
References Timer::parrent_.
|
virtual |
|
inlinevirtual |
|
inline |
Definition at line 99 of file Timer.hpp.
References Timer::parrent_.
Referenced by Timers::Timers().
Here is the caller graph for this function:
|
inline |
Definition at line 105 of file Timer.hpp.
References Timer::start_, and Timer::stepAccTime_.
Referenced by dynamicPointStructure::beforeIteration(), grainInteraction< contactForceModel, geometryMotionModel, contactListType >::iterate(), and sphereInteraction< contactForceModel, geometryMotionModel, contactListType >::iterate().
Here is the caller graph for this function:
|
inline |
Definition at line 112 of file Timer.hpp.
References pFlow::count(), Timer::end(), Timer::start_, and Timer::stepAccTime_.
Referenced by Timer::end().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 123 of file Timer.hpp.
References Timer::start_.
|
inline |
Definition at line 129 of file Timer.hpp.
References Timer::accTime_, Timer::lastTime_, Timer::numIteration_, Timer::pause(), and Timer::stepAccTime_.
Referenced by dynamicPointStructure::beforeIteration(), sphereInteraction< contactForceModel, geometryMotionModel, contactListType >::iterate(), grainInteraction< contactForceModel, geometryMotionModel, contactListType >::iterate(), and Timer::pause().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 139 of file Timer.hpp.
References Timer::numIteration_.
Referenced by Timers::accTimersTotal().
Here is the caller graph for this function:
|
inline |
Definition at line 145 of file Timer.hpp.
References Timer::lastTime_.
|
inline |
Definition at line 151 of file Timer.hpp.
References Timer::accTime_.
Referenced by Timers::accTimersTotal(), and Timer::accTimersTotal().
Here is the caller graph for this function:
|
inline |
Definition at line 157 of file Timer.hpp.
References Timer::accTime_, pFlow::max(), and Timer::numIteration_.
Here is the call graph for this function:
|
inlinevirtual |
Reimplemented in Timers.
Definition at line 163 of file Timer.hpp.
References Timer::totalTime().
Here is the call graph for this function:
|
virtual |
Reimplemented in Timers.
Definition at line 59 of file Timer.cpp.
References pFlow::abs(), boldChar, defaultColor, greenColor, pFlow::smallValue, and yellowColor.
Referenced by pFlow::operator<<(), and Timers::write().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtual |
|
private |
start time
Definition at line 40 of file Timer.hpp.
Referenced by Timer::pause(), Timer::resume(), and Timer::start().
|
private |
number of times start() and end() are called
Definition at line 43 of file Timer.hpp.
Referenced by Timer::averageTime(), Timer::end(), and Timer::timerActive().
|
private |
sum of time duratios (in seconds) between all start() and end() calls
Definition at line 46 of file Timer.hpp.
Referenced by Timer::averageTime(), Timer::end(), and Timer::totalTime().
|
private |
last time duration
Definition at line 49 of file Timer.hpp.
Referenced by Timer::end(), and Timer::lastTime().
|
private |
Accumulative duration for multiple steps between start() and end()
Definition at line 53 of file Timer.hpp.
Referenced by Timer::end(), Timer::pause(), and Timer::start().
|
private |
|
private |
parrent of timer
Definition at line 59 of file Timer.hpp.
Referenced by Timer::parrent(), Timer::removeParrent(), and Timer::Timer().