Class RateHelper<T, U>
Class RateHelper<T, U> helps calculating rates of all sorts (bit rates, counter rates, etc) based on counters.
This class is meant to be used as base class for more specific RateHelpers depending on
public class RateHelper<T, U> where U : RateCounter<T>
Type Parameters
TU
- Inheritance
-
RateHelper<T, U>
- Derived
- Extension Methods
Fields
Properties
- RateBase
Determines whether the rate should be calculated per second, minute, hour or day.
Methods
- Reset()
Resets the currently buffered data of this RateHelper<T, U> instance.
- ToJsonString()
Serializes the currently buffered data of this RateHelper<T, U> instance.