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

perf::TickCounter Class Reference

List of all members.

Detailed Description

A low-cost, low-resolution performance counter.

This class provides low-resolution, but low-latency, performance monitoring and is guaranteed to be meaningful on all operating systems.


Public Types

typedef long interval_type
 The interval type.

typedef typedef PerformanceCounterScope<
TickCounter > 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::TickCounter::interval_type
 

The interval type.

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

typedef typedef PerformanceCounterScope<TickCounter> Scope perf::TickCounter::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::TickCounter::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::TickCounter::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::TickCounter::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::TickCounter::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::TickCounter::start   [inline]
 

Starts measurement.

Begins the measurement period

void perf::TickCounter::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