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. |
|
The parameterising performance counter class.
|
|
The measurement interval is completed with a call to stop() on the managed counter instance. |
|
Returns a reference to the managed counter instance.
|
|
Calls stop() on the managed counter instance, so that intermediate timings can be taken. |
|
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. |