RateCounter Class

CVB.Net Documentation
Frame Rate Measurement counter with selectable averaging window.
Inheritance Hierarchy

SystemObject
  Stemmer.Cvb.UtilitiesRateCounter

Namespace:  Stemmer.Cvb.Utilities
Assembly:  Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax

public class RateCounter

The RateCounter type exposes the following members.

Constructors

  NameDescription
Public methodRateCounter
Constructor for an FpsCounter object with default averaging window size.
Public methodRateCounter(Int32)
Constructor for an FpsCounter object.
Public methodRateCounter(Int32, StopWatchMode)
Constructor for an FpsCounter object.
Top
Properties

  NameDescription
Public propertyAverageTimeSpan
Public propertyMode
The StopWatchMode used internally.
Public propertyNumSteps
Public propertyRate
Returns the rate (1/s) at which the calls to Step occurred.
Public propertyWindowSize
Currently used averaging window size.
Top
Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReset
Erase all measurements so far.
Public methodStep
Reading step (first reading step will not yield a measurement result but define the starting point).
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields

  NameDescription
Public fieldStatic memberDefaultWindowSize
Default averaging window size.
Public fieldStatic memberMaximumWindowSize
Maximum selectable averaging window size. Trying to select a larger window will result in an exception.
Public fieldStatic memberMinimumWindowSize
Minimal selectable averaging window size. Trying to select a smaller window will result in an exception.
Top
See Also

Reference