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 61ac408a70
commit c8fc26990e

View file

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