Frame Rate Measurement counter with selectable averaging window.
Inheritance Hierarchy
Stemmer.Cvb.UtilitiesRateCounter
Namespace: Stemmer.Cvb.Utilities
Assembly: Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax
The RateCounter type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| RateCounter |
Constructor for an FpsCounter object with default averaging window
size.
| |
| RateCounter(Int32) |
Constructor for an FpsCounter object.
| |
| RateCounter(Int32, StopWatchMode) |
Constructor for an FpsCounter object.
|
Properties
| Name | Description | |
|---|---|---|
| AverageTimeSpan | ||
| Mode |
The StopWatchMode used internally.
| |
| NumSteps | ||
| Rate |
Returns the rate (1/s) at which the calls to Step
occurred.
| |
| WindowSize |
Currently used averaging window size.
|
Methods
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Reset |
Erase all measurements so far.
| |
| Step |
Reading step (first reading step will not yield a measurement result
but define the starting point).
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| DefaultWindowSize |
Default averaging window size.
| |
| MaximumWindowSize |
Maximum selectable averaging window size. Trying to select a larger
window will result in an exception.
| |
| MinimumWindowSize |
Minimal selectable averaging window size. Trying to select a smaller
window will result in an exception.
|
See Also