performance_counter_scope Class Template Reference
[Performance Library]

#include <stlsoft/performance/performance_counter_scope.hpp>

List of all members.


Detailed Description

template<typename C>
class stlsoft::performance_counter_scope< C >

Scopes the measurement period for a performance counter.

Parameters:
C The performance counter type

Public Types

typedef C counter_type
 The counter type.
typedef
performance_counter_scope< C > 
class_type
 The class type.

Public Member Functions

 performance_counter_scope (counter_type &counter)
 Constructs with the performance counter instance to manage, on which start() is called.
 ~performance_counter_scope () throw ()
 Calls stop() on the managed counter.
void stop ()
 Calls stop() on the managed counter.
counter_type const & get_counter () const
 Returns a non-mutable (const) reference to the managed counter.

Member Typedef Documentation

typedef C counter_type

The counter type.

The class type.


Constructor & Destructor Documentation

performance_counter_scope ( counter_type counter  )  [inline, explicit]

Constructs with the performance counter instance to manage, on which start() is called.

~performance_counter_scope (  )  throw () [inline]

Calls stop() on the managed counter.


Member Function Documentation

void stop (  )  [inline]

Calls stop() on the managed counter.

counter_type const& get_counter (  )  const [inline]

Returns a non-mutable (const) reference to the managed counter.


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

Generated on Thu Jun 10 08:58:55 2010 for STLSoft by  doxygen 1.5.6