mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-28 08:06:23 +00:00
feat(Core/UpdateTime): Improve diff time measurement. (#18387)
* feat(Core/UpdateTime): Improve diff time measurement. * Codestyle fixes
This commit is contained in:
committed by
GitHub
parent
1768e4a633
commit
34598bfccf
@@ -35,6 +35,8 @@ public:
|
||||
uint32 GetMaxUpdateTime() const;
|
||||
uint32 GetMaxUpdateTimeOfCurrentTable() const;
|
||||
uint32 GetLastUpdateTime() const;
|
||||
uint32 GetDatasetSize() const;
|
||||
uint32 GetPercentile(uint8 p);
|
||||
|
||||
void UpdateWithDiff(uint32 diff);
|
||||
|
||||
@@ -43,6 +45,8 @@ public:
|
||||
protected:
|
||||
UpdateTime();
|
||||
|
||||
void SortUpdateTimeDataTable();
|
||||
|
||||
private:
|
||||
DiffTableArray _updateTimeDataTable;
|
||||
uint32 _averageUpdateTime;
|
||||
@@ -52,6 +56,9 @@ private:
|
||||
uint32 _maxUpdateTimeOfLastTable;
|
||||
uint32 _maxUpdateTimeOfCurrentTable;
|
||||
|
||||
DiffTableArray _orderedUpdateTimeDataTable;
|
||||
bool _needsReorder;
|
||||
|
||||
Milliseconds _recordedTime;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user