use a type alias for ProgressBar's chosen time point type

Change-Id: I621a455b1daba806fc498958aee7931fbfc55445
This commit is contained in:
Qyriad 2024-06-19 22:11:25 -06:00
parent f9594b592b
commit 8ba1939540

View file

@ -18,6 +18,8 @@ class ProgressBar : public Logger
private:
struct ActInfo
{
using TimePoint = std::chrono::time_point<std::chrono::steady_clock>;
std::string s, lastLine, phase;
ActivityType type = actUnknown;
uint64_t done = 0;
@ -28,7 +30,7 @@ private:
bool visible = true;
ActivityId parent;
std::optional<std::string> name;
std::chrono::time_point<std::chrono::steady_clock> startTime;
TimePoint startTime;
};
struct ActivitiesByType