#include "UpdateTime.h"
◆ DiffTableArray
◆ UpdateTime()
UpdateTime::UpdateTime |
( |
| ) |
|
|
protected |
◆ GetAverageUpdateTime()
uint32 UpdateTime::GetAverageUpdateTime |
( |
| ) |
const |
◆ GetDatasetSize()
uint32 UpdateTime::GetDatasetSize |
( |
| ) |
const |
◆ GetLastUpdateTime()
uint32 UpdateTime::GetLastUpdateTime |
( |
| ) |
const |
◆ GetMaxUpdateTime()
uint32 UpdateTime::GetMaxUpdateTime |
( |
| ) |
const |
◆ GetMaxUpdateTimeOfCurrentTable()
uint32 UpdateTime::GetMaxUpdateTimeOfCurrentTable |
( |
| ) |
const |
◆ GetPercentile()
◆ GetTimeWeightedAverageUpdateTime()
uint32 UpdateTime::GetTimeWeightedAverageUpdateTime |
( |
| ) |
const |
47{
48 uint32 sum = 0, weightsum = 0;
49
51 {
52 sum += diff * diff;
53 weightsum += diff;
54 }
55
56 if (weightsum == 0)
57 return 0;
58
59 return sum / weightsum;
60}
std::uint32_t uint32
Definition Define.h:107
References _updateTimeDataTable.
◆ RecordUpdateTimeReset()
void UpdateTime::RecordUpdateTimeReset |
( |
| ) |
|
128{
130}
Milliseconds GetTimeMS()
Definition Timer.h:84
Milliseconds _recordedTime
Definition UpdateTime.h:61
References _recordedTime, and GetTimeMS().
◆ SortUpdateTimeDataTable()
void UpdateTime::SortUpdateTimeDataTable |
( |
| ) |
|
|
protected |
◆ UpdateWithDiff()
void UpdateTime::UpdateWithDiff |
( |
uint32 |
diff | ) |
|
◆ _averageUpdateTime
uint32 UpdateTime::_averageUpdateTime |
|
private |
◆ _maxUpdateTime
uint32 UpdateTime::_maxUpdateTime |
|
private |
◆ _maxUpdateTimeOfCurrentTable
uint32 UpdateTime::_maxUpdateTimeOfCurrentTable |
|
private |
◆ _maxUpdateTimeOfLastTable
uint32 UpdateTime::_maxUpdateTimeOfLastTable |
|
private |
◆ _needsReorder
bool UpdateTime::_needsReorder |
|
private |
◆ _orderedUpdateTimeDataTable
◆ _recordedTime
◆ _totalUpdateTime
uint32 UpdateTime::_totalUpdateTime |
|
private |
◆ _updateTimeDataTable
◆ _updateTimeTableIndex
uint32 UpdateTime::_updateTimeTableIndex |
|
private |
The documentation for this class was generated from the following files: