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

perf::HighPerformanceCounter Class Reference

List of all members.

Detailed Description

A performance counter that uses the high performance hardware counter on the host machine.

This class provides high-resolution performance monitoring using the host machine's high performance hardware counter. This class does not provide meaningful timing information on operating systems that do not provide a high performance hardware counter.


Public Types

typedef long interval_type
 The interval type.

typedef typedef PerformanceCounterScope<
HighPerformanceCounter
> Scope 
scope_type
 The scope type.


Public Methods

void start ()
 Starts measurement.

void stop ()
 Ends measurement.

interval_type get_period_count ()
 The elapsed count in the measurement period.

interval_type get_seconds ()
 The number of whole seconds in the measurement period.

interval_type get_milliseconds ()
 The number of whole milliseconds in the measurement period.

interval_type get_microseconds ()
 The number of whole microseconds in the measurement period.


Member Typedef Documentation

typedef long perf::HighPerformanceCounter::interval_type
 

The interval type.

The type of the interval measurement, a 64-bit signed integer

typedef typedef PerformanceCounterScope<HighPerformanceCounter> Scope perf::HighPerformanceCounter::scope_type
 

The scope type.

The type with which instances of the counter class can be subject to the RAII protocol in order to scope particular measurement intervals


Member Function Documentation

interval_type perf::HighPerformanceCounter::get_microseconds   [inline]
 

The number of whole microseconds in the measurement period.

This represents the extent, in whole microseconds, of the measurement period

interval_type perf::HighPerformanceCounter::get_milliseconds   [inline]
 

The number of whole milliseconds in the measurement period.

This represents the extent, in whole milliseconds, of the measurement period

interval_type perf::HighPerformanceCounter::get_period_count   [inline]
 

The elapsed count in the measurement period.

This represents the extent, in machine-specific increments, of the measurement period

interval_type perf::HighPerformanceCounter::get_seconds   [inline]
 

The number of whole seconds in the measurement period.

This represents the extent, in whole seconds, of the measurement period

void perf::HighPerformanceCounter::start   [inline]
 

Starts measurement.

Begins the measurement period

void perf::HighPerformanceCounter::stop   [inline]
 

Ends measurement.

Ends the measurement period


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