3 #ifndef GAUDIKERNEL_CHRONO_H
4 #define GAUDIKERNEL_CHRONO_H
54 const std::string& tag =
"CHRONO::UNNAMED" )
56 {
if ( 0 != svc ) { m_chrono = svc -> chronoStart ( tag ) ; } }
80 (
const std::string& tag ,
83 {
if ( 0 != svc ) { m_chrono = svc -> chronoStart ( tag ) ; } }
106 {
if ( 0 != m_chrono ) { m_chrono ->
start () ; } }
131 ~Chrono () {
if ( 0 != m_chrono ) { m_chrono->stop() ; } }
149 #endif // GAUDIKERNEL_CHRONO_H
~Chrono()
Destructor , stop the chrono.
a small helper class for implementation of ChronoStatSvc service, It also could be used as some local...
A small utility class for chronometry of user codes.
Chrono(ChronoEntity *c)
Constructor from Chrono Object/Entity.
Chrono(ChronoEntity &c)
Constructor from Chrono Object/Entity.
ChronoEntity * m_chrono
The actual chronometer.
"Chrono"-related part of interface IChronoStatSvc