highperformance_counter Class Reference
[Performance Library]

#include <winstl/performance/highperformance_counter.hpp>

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 highperformance_counter class_type
 This type.
typedef ws_sint64_t interval_type
 The interval type.

Public Member Functions

void start ()
 Starts measurement.
void stop ()
 Ends measurement.
interval_type get_period_count () const
 The elapsed count in the measurement period.
interval_type get_seconds () const
 The number of whole seconds in the measurement period.
interval_type get_milliseconds () const
 The number of whole milliseconds in the measurement period.
interval_type get_microseconds () const
 The number of whole microseconds in the measurement period.

Static Public Member Functions

Construction
static void class_init ()
static void class_uninit ()


Member Typedef Documentation

This type.

typedef ws_sint64_t interval_type

The interval type.

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


Member Function Documentation

void start (  ) 

Starts measurement.

Begins the measurement period

void stop (  ) 

Ends measurement.

Ends the measurement period

interval_type get_period_count (  )  const

The elapsed count in the measurement period.

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

interval_type get_seconds (  )  const

The number of whole seconds in the measurement period.

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

interval_type get_milliseconds (  )  const

The number of whole milliseconds in the measurement period.

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

interval_type get_microseconds (  )  const

The number of whole microseconds in the measurement period.

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


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

Generated on Thu Jun 10 08:59:32 2010 for STLSoft by  doxygen 1.5.6