AccumulativeAverageNumber
A class in Root.Township, Alta.Networking.
Profiling helper: adds up numbers over one period, then records the total into a running average. EntitySerializer uses two of these for prepare and serialization time.
- Listed in Networking and servers
Constructors
| Member | What it is |
|---|---|
AccumulativeAverageNumber() | Creates an AccumulativeAverageNumber with default values. |
Fields
2 private and internal fields
| Member | What it is |
|---|---|
private AverageNumber duration | The running average the totals are recorded into. |
private double sum | The total for the current period. |
Properties
| Member | What it is |
|---|---|
float DurationMs { get; } | The running average of the recorded totals, as a float (milliseconds by how it is used). |
Methods
Used in
Members of other types that take, return or hold a AccumulativeAverageNumber: