bes  Updated for version 3.20.6
BESStopWatch Class Reference
Collaboration diagram for BESStopWatch:
Collaboration graph

Public Member Functions

 BESStopWatch ()
 
 BESStopWatch (std::string logName)
 
virtual void dump (std::ostream &strm) const
 dumps information about this object More...
 
virtual bool start (std::string name)
 
virtual bool start (std::string name, std::string reqID)
 
virtual ~BESStopWatch ()
 

Detailed Description

Definition at line 55 of file BESStopWatch.h.

Constructor & Destructor Documentation

◆ BESStopWatch() [1/2]

BESStopWatch::BESStopWatch ( )
inline

Makes a new BESStopWatch with a logName of TIMING_LOG

Definition at line 75 of file BESStopWatch.h.

◆ BESStopWatch() [2/2]

BESStopWatch::BESStopWatch ( std::string  logName)
inline

Makes a new BESStopWatch.

Parameters
logNameThe name of the log to use in the logging output.

Definition at line 88 of file BESStopWatch.h.

◆ ~BESStopWatch()

BESStopWatch::~BESStopWatch ( )
virtual

This destructor is "special" in that it's execution signals the timer to stop if it has been started. Stopping the timer will initiate an attempt to write logging information to the BESDebug::GetStrm() stream. If the start method has not been called then the method exits silently.

Definition at line 123 of file BESStopWatch.cc.

Member Function Documentation

◆ dump()

void BESStopWatch::dump ( std::ostream &  strm) const
virtual

dumps information about this object

Displays the pointer value of this instance

Parameters
strmC++ i/o stream to dump the information to

Implements BESObj.

Definition at line 214 of file BESStopWatch.cc.

◆ start() [1/2]

bool BESStopWatch::start ( std::string  name)
virtual

Starts the timer. NB: This method will attempt to write logging information to the BESDebug::GetStrm() stream.

Parameters
nameThe name of the timer.

Definition at line 58 of file BESStopWatch.cc.

◆ start() [2/2]

bool BESStopWatch::start ( std::string  name,
std::string  reqID 
)
virtual

Starts the timer. NB: This method will attempt to write logging information to the BESDebug::GetStrm() stream.

Parameters
nameThe name of the timer.
reqIDThe client's request ID associated with this activity. Available from the DataHandlerInterfact object.

Starts the timer. NB: This method will attempt to write logging information to the BESDebug::GetStrm() stream.

Parameters
nameThe name of the timer.
reqIDThe client's request ID associated with this activity. Available from the DataHandlerInterfact object.

Definition at line 72 of file BESStopWatch.cc.


The documentation for this class was generated from the following files: