Timer Class Reference

A timer produces a time to be stored in Timings. More...

#include <timings.h>

Collaboration diagram for Timer:

Collaboration graph
[legend]

Public Member Functions

 Timer (Timings &st, std::string n)
 Automatically starts the Timer.
 ~Timer ()
 If end hasn't already been called, then call it.
void start ()
 Start timer.
void end ()
 Stop the timer and update Timings.

Private Attributes

Timingsstore
std::string name
unsigned long long tStart

Detailed Description

A timer produces a time to be stored in Timings.

Definition at line 21 of file timings.h.


Constructor & Destructor Documentation

Timer::Timer Timings st,
std::string  n
[inline]
 

Automatically starts the Timer.

Definition at line 32 of file timings.h.

References start().

Here is the call graph for this function:

Timer::~Timer  )  [inline]
 

If end hasn't already been called, then call it.

Definition at line 96 of file timings.h.

References end(), and tStart.

Here is the call graph for this function:


Member Function Documentation

void Timer::end  )  [inline]
 

Stop the timer and update Timings.

Definition at line 87 of file timings.h.

References Timings::addTiming(), name, store, and tStart.

Referenced by ~Timer().

Here is the call graph for this function:

void Timer::start  )  [inline]
 

Start timer.

Definition at line 82 of file timings.h.

References tStart.

Referenced by Timer().


The documentation for this class was generated from the following file:
Generated on Mon Feb 6 14:02:25 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6