Frame Rate Measurement counter with selectable averaging window. More...
Public Member Functions | |
| RateCounter (int windowSize, StopWatchMode mode) | |
| Constructor for an FpsCounter object. | |
| RateCounter (int windowSize) | |
| Constructor for an FpsCounter object. | |
| RateCounter () | |
| Constructor for an FpsCounter object with default averaging window size. | |
| void | Reset () |
| Erase all measurements so far. | |
| void | Step () |
| Reading step (first reading step will not yield a measurement result but define the starting point). | |
Properties | |
| StopWatchMode | Mode [get] |
| The StopWatchMode used internally. | |
| int | WindowSize [get, set] |
| Currently used averaging window size. | |
| UsTimeSpan | AverageTimeSpan [get] |
| Average time span between two Step calls since the creation of the counter or the most recent call to Reset. | |
| double | Rate [get] |
| Returns the rate (1/s) at which the calls to Step occurred. | |
| long | NumSteps [get] |
| Number of Step called since construction or since last call to Reset. | |
Frame Rate Measurement counter with selectable averaging window.
| RateCounter | ( | int | windowSize, |
| StopWatchMode | mode ) |
Constructor for an FpsCounter object.
| windowSize | Averaging window (i.e. number of measurements over which to average). |
| mode | StopWatchMode to be used. See enum values for details. |
| RateCounter | ( | int | windowSize | ) |
Constructor for an FpsCounter object.
| windowSize | Averaging window (i.e. number of measurements over which to average). |
|
getset |
Currently used averaging window size.
| ArgumentOutOfRangeException | If the value to be set exceeds the range [MinimumWindowSize...MaximumWindowSize]. |