Skip to main content

BudgetedUpdateModuleProfiler.BudgetedData

A class in Root.Township, the global namespace.

Timing totals for one budgeted update module, kept in BudgetedUpdateModuleProfiler.ElapsedTime.

Constructors​

MemberWhat it is
BudgetedData(string moduleName)Creates a BudgetedUpdateModuleProfiler.BudgetedData from moduleName.

Fields​

MemberWhat it is
string moduleNameName of the module being timed.
int registeredCountHow many methods the module had registered at the last recording.
double totalMillisecondsTotal milliseconds recorded since the last reset.
int totalRecordingsNumber of recordings since the last reset.
1 private and internal field
MemberWhat it is
private double averageMillisecondsAverage milliseconds per recording, set by UpdateAverage.

Methods​

MemberWhat it is
void Reset()Zeroes the totals and average.
void UpdateAverage()Sets the average from the total time divided by the number of recordings.

Used in​

Members of other types that take, return or hold a BudgetedData: