Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Related Pages

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 18 of file timings.h.


Constructor & Destructor Documentation

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

Automatically starts the Timer.

Definition at line 29 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 93 of file timings.h.

References end().

Here is the call graph for this function:


Member Function Documentation

void Timer::end  )  [inline]
 

Stop the timer and update Timings.

Definition at line 84 of file timings.h.

References Timings::addTiming().

Referenced by ~Timer().

Here is the call graph for this function:

void Timer::start  )  [inline]
 

Start timer.

Definition at line 79 of file timings.h.

Referenced by Timer().


The documentation for this class was generated from the following file:
Generated on Thu Jul 15 09:51:08 2004 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5