#include <Chrono.h>
Collaboration diagram for Chrono:
Public Member Functions | |
Chrono (IChronoSvc *svc=0, const std::string &tag="CHRONO::UNNAMED") | |
Constructor from Chrono Service and the tag. | |
Chrono (const std::string &tag, IChronoSvc *svc) | |
Constructor from Chrono Service and the tag. | |
Chrono (ChronoEntity *c) | |
Constructor from Chrono Object/Entity. | |
Chrono (ChronoEntity &c) | |
Constructor from Chrono Object/Entity. | |
~Chrono () | |
Destructor , stop the chrono. | |
Private Member Functions | |
Chrono (const Chrono &) | |
the copy constructor is disabled | |
Chrono & | operator= (const Chrono &) |
the assignemet operator is disabled | |
Private Attributes | |
ChronoEntity * | m_chrono |
The actual chronometer. |
Definition at line 27 of file Chrono.h.
Chrono::Chrono | ( | IChronoSvc * | svc = 0 , |
|
const std::string & | tag = "CHRONO::UNNAMED" | |||
) | [inline] |
Constructor from Chrono Service and the tag.
IChronoSvc* svc = ... ; { // start the scope Chrono chrono ( svc , "some unique tag here" ) ; for ( long i = 0 ; i < 10000000 ; ++i ) { .. put some CPU-intensive computations here } } // end of the scope, destroy chrono
Definition at line 53 of file Chrono.h.
Chrono::Chrono | ( | const std::string & | tag, | |
IChronoSvc * | svc | |||
) | [inline] |
Constructor from Chrono Service and the tag.
IChronoSvc* svc = ... ; { // start the scope Chrono chrono ( "some unique tag here" , svc ) ; for ( long i = 0 ; i < 10000000 ; ++i ) { .. put some CPU-intensive computations here } } // end of the scope, destroy chrono
Definition at line 80 of file Chrono.h.
Chrono::Chrono | ( | ChronoEntity * | c | ) | [inline] |
Constructor from Chrono Object/Entity.
ChronoEntity* chronometer = ... ; { // start the scope Chrono chrono ( chronometer ) ; for ( long i = 0 ; i < 10000000 ; ++i ) { .. put some CPU-intensive computations here } } // end of the scope, destroy chrono
c | the pointer to Chrono Object/Entity |
Definition at line 105 of file Chrono.h.
Chrono::Chrono | ( | ChronoEntity & | c | ) | [inline] |
Constructor from Chrono Object/Entity.
ChronoEntity m_chrono = ... ; { // start the scope Chrono chrono ( m_chrono ) ; for ( long i = 0 ; i < 10000000 ; ++i ) { .. put some CPU-intensive computations here } } // end of the scope, destroy chrono
c | the reference to Chrono Object/Entity |
Definition at line 128 of file Chrono.h.
Chrono::~Chrono | ( | ) | [inline] |
Chrono::Chrono | ( | const Chrono & | ) | [private] |
the copy constructor is disabled
ChronoEntity* Chrono::m_chrono [private] |