STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - Template Software for the Active Template Library COMSTL - The Standard Template Library meets the Component Object Model .netSTL - Standard Template Library meets the Microsoft.NET Common Language Runtime InetSTL - The Standard Template Library meets WinInet MFCSTL - Template Software for the Microsoft Foundation Classes UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

performance_counter_scope Class Template Reference
[Performance Library (WinSTL)]

Scopes the measurement period for a performance counter. More...

#include <winstl_performance_counter_scope.h>

List of all members.

Public Types

typedef C counter_type
 The counter type.

typedef performance_counter_scope<
C > 
class_type
 The class type.


Public Methods

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

 ~performance_counter_scope ()
 Calls stop() on the managed counter.

void stop ()
 Calls stop() on the managed counter.

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


Detailed Description

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

Scopes the measurement period for a performance counter.

Parameters:
C  The performance counter type


Member Typedef Documentation

typedef performance_counter_scope<C> class_type
 

The class type.

typedef C counter_type
 

The counter 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   [inline]
 

Calls stop() on the managed counter.


Member Function Documentation

const counter_type& get_counter   const [inline]
 

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

void stop   [inline]
 

Calls stop() on the managed counter.


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

STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004