Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members  

perf::Scope Class Reference

List of all members.

Detailed Description

Performance counter scoping class.

This auto class manages a performance counter instance, scoping its measurement interval by virtue of its supporting the RAII protocol


Public Types

typedef T counter_type
 The parameterising performance counter class.


Public Methods

 this (counter_type counter)
 ~this ()
void stop ()
counter_type get_counter ()
 Returns a reference to the managed counter instance.


Member Typedef Documentation

typedef T perf::Scope::counter_type
 

The parameterising performance counter class.


Constructor & Destructor Documentation

perf::Scope::~this   [inline]
 

The measurement interval is completed with a call to stop() on the managed counter instance.


Member Function Documentation

counter_type perf::Scope::get_counter   [inline]
 

Returns a reference to the managed counter instance.

void perf::Scope::stop   [inline]
 

Calls stop() on the managed counter instance, so that intermediate timings can be taken.

perf::Scope::this counter_type    counter [inline]
 

Constructs an instance of the PerformanceCounterScope using a reference to the parameterising performance counter class, whose measurement is to be scoped. The measurement interval is commenced with a call to start() on the managed counter instance.


The documentation for this class was generated from the following file:
Generated on Thu Apr 3 15:41:14 2003 for SynSoft D Libraries by doxygen1.2.18