Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::TraceTimerT< Model > Class Template Reference

Public Types

enum  ClockState { init , stopped , running }

Public Member Functions

 TraceTimerT (const bool _start=true)
 New timer.
void reset ()
 reset timer
void start ()
 start the timer or restart without cumulate
void restart ()
 start or restart the timer and cumuluate
double stop ()
 stop timer
ClockState getState () const
 return state of timer
double getTime ()
 get partial time
double getCumulTime ()
 get total time

Detailed Description

template<typename Model>
class Arcane::TraceTimerT< Model >

Definition at line 122 of file TraceTimer.h.

Member Enumeration Documentation

◆ ClockState

template<typename Model>
enum Arcane::TraceTimerT::ClockState

Definition at line 126 of file TraceTimer.h.

Constructor & Destructor Documentation

◆ TraceTimerT()

template<typename Model>
Arcane::TraceTimerT< Model >::TraceTimerT ( const bool _start = true)
inline

New timer.

Autostart by default

Definition at line 148 of file TraceTimer.h.

Member Function Documentation

◆ getCumulTime()

template<typename Model>
double Arcane::TraceTimerT< Model >::getCumulTime ( )
inline

get total time

Definition at line 211 of file TraceTimer.h.

◆ getState()

template<typename Model>
ClockState Arcane::TraceTimerT< Model >::getState ( ) const
inline

return state of timer

Definition at line 196 of file TraceTimer.h.

◆ getTime()

template<typename Model>
double Arcane::TraceTimerT< Model >::getTime ( )
inline

get partial time

Definition at line 202 of file TraceTimer.h.

◆ reset()

template<typename Model>
void Arcane::TraceTimerT< Model >::reset ( )
inline

reset timer

Definition at line 159 of file TraceTimer.h.

◆ restart()

template<typename Model>
void Arcane::TraceTimerT< Model >::restart ( )
inline

start or restart the timer and cumuluate

Usefull for starting the count of a new partial time and keep the cumulative timer

Definition at line 175 of file TraceTimer.h.

◆ start()

template<typename Model>
void Arcane::TraceTimerT< Model >::start ( )
inline

start the timer or restart without cumulate

Definition at line 167 of file TraceTimer.h.

Referenced by Arcane::TraceTimerT< InnerTimer_DAY >::TraceTimerT().

◆ stop()

template<typename Model>
double Arcane::TraceTimerT< Model >::stop ( )
inline

stop timer

Definition at line 186 of file TraceTimer.h.


The documentation for this class was generated from the following file: