calculate the time interval between two time stamps.
More...
#include "NAGASH/Timer.h"
|
| Timer (std::shared_ptr< MSGTool > msg, const TString &name="Timer") |
| Constructor.
|
|
void | Clear () |
| Clear all the time stamps.
|
|
void | Duration (const TString &Name1, const TString &Name2) |
| Print the time interval between two time stamps.
|
|
void | PrintCurrent (const TString &prefix="") |
| Print the current time.
|
|
void | Record (const TString &Name) |
| Record the current time.
|
|
calculate the time interval between two time stamps.
Definition at line 13 of file Timer.h.
◆ Timer()
NAGASH::Timer::Timer |
( |
std::shared_ptr< MSGTool > |
msg, |
|
|
const TString & |
name = "Timer" |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
msg | input MSGTool. |
name | name of the timer. |
Definition at line 19 of file Timer.h.
◆ Clear()
Clear all the time stamps.
Definition at line 101 of file Timer.cxx.
◆ Duration()
void Timer::Duration |
( |
const TString & |
Name1, |
|
|
const TString & |
Name2 |
|
) |
| |
Print the time interval between two time stamps.
- Parameters
-
Name1 | name of the first time stamp. |
Name2 | name of the second time stamp. |
Definition at line 46 of file Timer.cxx.
◆ PrintCurrent()
void Timer::PrintCurrent |
( |
const TString & |
prefix = "" | ) |
|
Print the current time.
- Parameters
-
prefix | some message you want to print before the current time. |
Definition at line 18 of file Timer.cxx.
◆ Record()
void Timer::Record |
( |
const TString & |
Name | ) |
|
Record the current time.
- Parameters
-
Name | name of the time stamp. |
Definition at line 28 of file Timer.cxx.
◆ TimeIndexMap
std::map<TString, int> NAGASH::Timer::TimeIndexMap |
|
private |
◆ TimeRecord
std::vector<std::chrono::time_point<std::chrono::system_clock> > NAGASH::Timer::TimeRecord |
|
private |
◆ TimeRecordName
std::vector<TString> NAGASH::Timer::TimeRecordName |
|
private |
◆ TimerName
TString NAGASH::Timer::TimerName |
|
private |
The documentation for this class was generated from the following files: