A small utility class for chronometry of user codes.
More...
#include <Chrono.h>
List of all members.
Detailed Description
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.
Constructor & Destructor Documentation
Constructor from Chrono Service and the tag.
IChronoSvc* svc = ... ;
{
Chrono chrono ( svc , "some unique tag here" ) ;
for ( long i = 0 ; i < 10000000 ; ++i )
{
.. put some CPU-intensive computations here
}
}
- Parameters:
-
Definition at line 53 of file Chrono.h.
: m_chrono ( 0 )
{ if ( 0 != svc ) { m_chrono = svc -> chronoStart ( tag ) ; } }
Constructor from Chrono Service and the tag.
IChronoSvc* svc = ... ;
{
Chrono chrono ( "some unique tag here" , svc ) ;
for ( long i = 0 ; i < 10000000 ; ++i )
{
.. put some CPU-intensive computations here
}
}
- Parameters:
-
Definition at line 80 of file Chrono.h.
: m_chrono ( 0 )
{ if ( 0 != svc ) { m_chrono = svc -> chronoStart ( tag ) ; } }
Constructor from Chrono Object/Entity.
ChronoEntity* chronometer = ... ;
{
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 105 of file Chrono.h.
Constructor from Chrono Object/Entity.
ChronoEntity m_chrono = ... ;
{
Chrono chrono ( m_chrono ) ;
for ( long i = 0 ; i < 10000000 ; ++i )
{
.. put some CPU-intensive computations here
}
}
- Parameters:
-
| c | the reference to Chrono Object/Entity |
Definition at line 128 of file Chrono.h.
| Chrono::~Chrono |
( |
) |
[inline] |
Destructor , stop the chrono.
Definition at line 131 of file Chrono.h.
| Chrono::Chrono |
( |
const Chrono & |
) |
[private] |
the copy constructor is disabled
Member Function Documentation
the assignment operator is disabled
Member Data Documentation
The actual chronometer.
Definition at line 143 of file Chrono.h.
The documentation for this class was generated from the following file:
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r2/GaudiKernel/GaudiKernel/Chrono.h