51 const std::string& tag =
"CHRONO::UNNAMED" )
53 if ( svc ) {
m_chrono = svc->chronoStart( tag ); }
58 rhs.m_chrono =
nullptr;
a small helper class for implementation of ChronoStatSvc service, It also could be used as some local...
Chrono(ChronoEntity *c)
Constructor from Chrono Object/Entity.
Chrono(const Chrono &)=delete
ChronoEntity * m_chrono
The actual chronometer.
Chrono & operator=(const Chrono &)=delete
~Chrono()
Destructor , stop the chrono.
Chrono(const std::string &tag, IChronoSvc *svc)
Constructor from Chrono Service and the tag.
Chrono(ChronoEntity &c)
Constructor from Chrono Object/Entity.
Chrono(IChronoSvc *svc=nullptr, const std::string &tag="CHRONO::UNNAMED")
Constructor from Chrono Service and the tag.
"Chrono"-related part of interface IChronoStatSvc
virtual ChronoEntity * chronoStart(const ChronoTag &t)=0
start chrono, tagged by its name