1 #ifndef GAUDIKERNEL_CHRONO_H
2 #define GAUDIKERNEL_CHRONO_H
12 #include "GaudiKernel/Kernel.h"
13 #include "GaudiKernel/IChronoSvc.h"
14 #include "GaudiKernel/ChronoEntity.h"
52 const std::string& tag =
"CHRONO::UNNAMED" )
53 {
if ( svc ) { m_chrono = svc -> chronoStart ( tag ) ; } }
60 { m_chrono = rhs.
m_chrono; rhs.m_chrono =
nullptr; }
85 (
const std::string& tag ,
87 {
if ( svc ) { m_chrono = svc -> chronoStart ( tag ) ; } }
110 {
if ( m_chrono ) { m_chrono ->
start () ; } }
135 ~
Chrono () {
if ( m_chrono ) { m_chrono->stop() ; } }
152 #endif // GAUDIKERNEL_CHRONO_H
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.
ChronoEntity * m_chrono
The actual chronometer.
"Chrono"-related part of interface IChronoStatSvc