A small utility class for chronometry of user codes.
More...
#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 25 of file Chrono.h.
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
}
}
- Parameters
-
Definition at line 50 of file Chrono.h.
virtual ChronoEntity * chronoStart(const ChronoTag &t)=0
start chrono, tagged by its name
ChronoEntity * m_chrono
The actual chronometer.
Chrono::Chrono |
( |
Chrono && |
rhs | ) |
|
|
inline |
Move Constructor.
Definition at line 62 of file Chrono.h.
ChronoEntity * m_chrono
The actual chronometer.
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 90 of file Chrono.h.
virtual ChronoEntity * chronoStart(const ChronoTag &t)=0
start chrono, tagged by its name
ChronoEntity * m_chrono
The actual chronometer.
Constructor from Chrono Object/Entity.
{
Chrono chrono ( chronometer ) ;
for ( long i = 0 ; i < 10000000 ; ++i )
{
..
put some CPU-intensive computations here
}
}
- Parameters
-
c | the pointer to Chrono Object/Entity |
Definition at line 118 of file Chrono.h.
IChronoSvc::ChronoStatus start()
start the current chrono
ChronoEntity * m_chrono
The actual chronometer.
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 145 of file Chrono.h.
IChronoSvc::ChronoStatus start()
start the current chrono
ChronoEntity * m_chrono
The actual chronometer.
Destructor , stop the chrono.
Definition at line 148 of file Chrono.h.
ChronoEntity * m_chrono
The actual chronometer.
IChronoSvc::ChronoStatus stop()
stop the chrono
Chrono::Chrono |
( |
const Chrono & |
| ) |
|
|
privatedelete |
delete the copy constructor and assignment operators
The actual chronometer.
Definition at line 164 of file Chrono.h.
The documentation for this class was generated from the following file: