add Util.DebugExecutionTime

This commit is contained in:
Lion Kortlepel authored and Lion committed 2024-03-06 10:27:22 +01:00
1 parent cbc1483537
commit 7deea900fb
5 files changed
+35 -2

No files matched your search

+3
View File
@@ -45,6 +45,9 @@ struct UnitProfileCollection {
/// Returns the number of elements the moving average is calculated over.
size_t measurement_count(const std::string& unit);
/// Returns the averages for all stored units.
std::unordered_map<std::string, double> all_average_durations();
private:
boost::synchronized_value<std::unordered_map<std::string, UnitExecutionTime>> m_map;
};