SmoothCounter
Namespace: Bang.Diagnostics
Assembly: Bang.dll
public class SmoothCounter
Class used to smooth the counter of performance ticks.
⭐ Constructors
public SmoothCounter(int size)
Creates a new SmoothCounter.
Parameters
size
int
⭐ Properties
AverageEntities
public int AverageEntities { get; }
Average of entities over the sample size.
Returns
int
AverageTime
public int AverageTime { get; }
Average of counter time value over the sample size.
Returns
int
MaximumTime
public double MaximumTime { get; }
Maximum value over the sample size.
Returns
double
⭐ Methods
Clear()
public void Clear()
Clear the counter track.
Update(double, int)
public void Update(double ms, int totalEntities)
Update the smooth counter for the FPS report.
Parameters
ms
double
totalEntities
int
⚡