21 void Record(
const TString &Name);
22 void Duration(
const TString &Name1,
const TString &Name2);
26 std::vector<std::chrono::time_point<std::chrono::system_clock>>
TimeRecord;
calculate the time interval between two time stamps.
std::vector< TString > TimeRecordName
void PrintCurrent(const TString &prefix="")
Print the current time.
void Duration(const TString &Name1, const TString &Name2)
Print the time interval between two time stamps.
std::map< TString, int > TimeIndexMap
std::vector< std::chrono::time_point< std::chrono::system_clock > > TimeRecord
void Record(const TString &Name)
Record the current time.
Timer(std::shared_ptr< MSGTool > msg, const TString &name="Timer")
Constructor.
void Clear()
Clear all the time stamps.