Skip to content

Commit

Permalink
Add missing init. for some fields in Timer.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiPashkin committed Jan 3, 2021
1 parent f75d601 commit 5394e8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cpp/gauge/utils/benchmark.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class Timer {
long long observations_count = 0;
long double average = 0;
};
std::unordered_map<std::string, Average> averages;
std::unordered_map<std::string, Average> averages{};
std::unordered_map<std::string, std::chrono::steady_clock::time_point>
pending;
pending{};

public:
Timer() = default;
Expand Down

0 comments on commit 5394e8e

Please sign in to comment.