#include <stlsoft/performance/performance_counter_scope.hpp>
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. |
typedef C counter_type |
The counter type.
typedef performance_counter_scope<C> class_type |
The class type.
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.
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.