![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <NetStatsUtils.h>
Inheritance diagram for UE::Net::TBinnedDeltaMovingValue< ConsumerType, NumBins, InMode >:Public Member Functions | |
| void | AddMeasurement (double TimeVal, double Value) |
| void | Reset () |
| void | Flush () |
Version of TBinnedMovingValue which takes permanently incrementing values (e.g. frame count), and uses the delta since the previous value as the measurement (this means the very first value is not measured).
Use TDeltaBinnedMovingAvg/TDeltaBinnedMovingSum aliases, instead of using this directly.
| ConsumerType | The type which will be used for consuming samples. |
| NumBins | The number of bins to use. |
| InMode | Internal |
|
inline |
Inputs a value whose delta is calculated for measurement, and the approximate time it was measured.
| TimeVal | The time of the measurement. |
| Value | The value to calculate the delta of, for measurement |
|
inline |
Flushes a sample from the current bin values to the consumer.
Since this is a moving value, none of the bins are reset when a sample is output (so the flushed sample can partially reflect old values), and the current bin will have been reset recently so it can be filled (so the flushed value may not reflect the full time period).
The user must consider whether this is accurate/suitable for their use case.
|
inline |
Resets the accumulated bin/sample data (the very first value after this is not measured).