A small utility class for chronometry of user codes.
More...
#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/Chrono.h>
A small utility class for chronometry of user codes.
- See also
- ChronoEntity
-
IChronoSvc
- Author
- Vanya Belyaev
- Date
- Nov 26, 1999
Definition at line 27 of file Chrono.h.
◆ Chrono() [1/6]
Chrono::Chrono |
( |
IChronoSvc * | svc = nullptr, |
|
|
const std::string & | tag = "CHRONO::UNNAMED" ) |
|
inline |
Constructor from Chrono Service and the tag.
{
Chrono chrono ( svc ,
"some unique tag here" ) ;
for ( long i = 0 ; i < 10000000 ; ++i )
{
.. put some CPU-intensive computations here
}
}
Chrono(IChronoSvc *svc=nullptr, const std::string &tag="CHRONO::UNNAMED")
Constructor from Chrono Service and the tag.
"Chrono"-related part of interface IChronoStatSvc
- Parameters
-
Definition at line 50 of file Chrono.h.
52 {
54 }
ChronoEntity * m_chrono
The actual chronometer.
virtual ChronoEntity * chronoStart(const ChronoTag &t)=0
start chrono, tagged by its name
◆ Chrono() [2/6]
Chrono::Chrono |
( |
Chrono && | rhs | ) |
|
|
inline |
◆ Chrono() [3/6]
Chrono::Chrono |
( |
const std::string & | tag, |
|
|
IChronoSvc * | svc ) |
|
inline |
Constructor from Chrono Service and the tag.
{
Chrono chrono (
"some unique tag here" , svc ) ;
for ( long i = 0 ; i < 10000000 ; ++i )
{
.. put some CPU-intensive computations here
}
}
- Parameters
-
Definition at line 82 of file Chrono.h.
◆ Chrono() [4/6]
Constructor from Chrono Object/Entity.
{
Chrono chrono ( chronometer ) ;
for ( long i = 0 ; i < 10000000 ; ++i )
{
.. put some CPU-intensive computations here
}
}
a small helper class for implementation of ChronoStatSvc service, It also could be used as some local...
- Parameters
-
c | the pointer to Chrono Object/Entity |
Definition at line 108 of file Chrono.h.
◆ Chrono() [5/6]
Constructor from Chrono Object/Entity.
{
for ( long i = 0 ; i < 10000000 ; ++i )
{
.. put some CPU-intensive computations here
}
}
- Parameters
-
c | the reference to Chrono Object/Entity |
Definition at line 132 of file Chrono.h.
◆ ~Chrono()
Destructor , stop the chrono.
Definition at line 135 of file Chrono.h.
◆ Chrono() [6/6]
Chrono::Chrono |
( |
const Chrono & | | ) |
|
|
privatedelete |
◆ operator=()
◆ m_chrono
The actual chronometer.
Definition at line 144 of file Chrono.h.
The documentation for this class was generated from the following file:
- GaudiKernel/include/GaudiKernel/Chrono.h