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 | |
Private Attributes | |
| ClockState | state |
| Timer State. | |
| double | t0 |
| Initial and last time. | |
| double | t1 |
| double | total |
| Cumulate time. | |
Definition at line 122 of file TraceTimer.h.
| enum Arcane::TraceTimerT::ClockState |
Definition at line 126 of file TraceTimer.h.
|
inline |
|
inline |
get total time
Definition at line 211 of file TraceTimer.h.
|
inline |
return state of timer
Definition at line 196 of file TraceTimer.h.
|
inline |
get partial time
Definition at line 202 of file TraceTimer.h.
|
inline |
reset timer
Definition at line 159 of file TraceTimer.h.
|
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.
|
inline |
start the timer or restart without cumulate
Definition at line 167 of file TraceTimer.h.
Referenced by Arcane::TraceTimerT< InnerTimer_DAY >::TraceTimerT().
|
inline |
stop timer
Definition at line 186 of file TraceTimer.h.
|
private |
Timer State.
Definition at line 136 of file TraceTimer.h.
|
private |
Initial and last time.
Definition at line 139 of file TraceTimer.h.
|
private |
Definition at line 139 of file TraceTimer.h.
|
private |
Cumulate time.
Definition at line 142 of file TraceTimer.h.