|
ROOT_Application
2.0
C++ Core modules and GUIStock
|
nested class of MyTimer, contains the timers functions More...
#include <MyTimer.h>

Public Member Functions | |
Contructor | |
| OneTimer () | |
| default constructor. More... | |
| ~OneTimer () | |
| destructor More... | |
Getter/Setter | |
| unsigned int | GetNumberCalls () |
| Get the number of calls. More... | |
| std::vector< double > | GetAllTimes () |
| Get all computed times. More... | |
Starting and Stopping one timer | |
| void | Start () |
| Start the timer. More... | |
| void | Stop () |
| Stop the timer. More... | |
| void | Reset () |
| reset the timer More... | |
Private Types | |
| typedef std::chrono::duration < double, std::milli > | duration_dtt |
| typedef std::chrono::time_point < std::chrono::steady_clock, std::chrono::duration< double, std::ratio< 1, 1000000000 > > > | tpoint |
Private Attributes | |
time variable | |
| tpoint | start_t |
| time_point, starting time More... | |
| tpoint | stop_t |
| time_point, stopping time More... | |
| duration_dtt | total_t |
| total time, a duration More... | |
| unsigned int | n_call |
| number of calls to stop/start More... | |
|
private |
|
private |
| MyTimer::OneTimer::OneTimer | ( | ) |
| MyTimer::OneTimer::~OneTimer | ( | ) |
destructor
Definition at line 131 of file MyTimer.cpp.
| std::vector< double > MyTimer::OneTimer::GetAllTimes | ( | ) |
Get all computed times.
Definition at line 240 of file MyTimer.cpp.
Referenced by MyTimer::GetAverageTime(), MyTimer::GetTotalTime(), and MyTimer::Report().

|
inline |
Get the number of calls.
Definition at line 125 of file MyTimer.h.
References n_call.
Referenced by MyTimer::GetNumberCalls(), and MyTimer::Report().

| void MyTimer::OneTimer::Reset | ( | ) |
reset the timer
Definition at line 230 of file MyTimer.cpp.
Referenced by MyTimer::Reset().

| void MyTimer::OneTimer::Start | ( | ) |
Start the timer.
Definition at line 139 of file MyTimer.cpp.
Referenced by MyTimer::Start().

| void MyTimer::OneTimer::Stop | ( | ) |
Stop the timer.
Definition at line 174 of file MyTimer.cpp.
Referenced by MyTimer::Stop().

|
private |
number of calls to stop/start
Definition at line 108 of file MyTimer.h.
Referenced by GetNumberCalls(), and OneTimer().
|
private |
|
private |
|
private |
1.8.6