From 8ba1939540a6f53166986446a5b8ee077591167a Mon Sep 17 00:00:00 2001 From: Qyriad Date: Wed, 19 Jun 2024 22:11:25 -0600 Subject: use a type alias for ProgressBar's chosen time point type Change-Id: I621a455b1daba806fc498958aee7931fbfc55445 --- src/libmain/progress-bar.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libmain') diff --git a/src/libmain/progress-bar.hh b/src/libmain/progress-bar.hh index ae6e0d6da..1ac7ba97b 100644 --- a/src/libmain/progress-bar.hh +++ b/src/libmain/progress-bar.hh @@ -18,6 +18,8 @@ class ProgressBar : public Logger private: struct ActInfo { + using TimePoint = std::chrono::time_point; + std::string s, lastLine, phase; ActivityType type = actUnknown; uint64_t done = 0; @@ -28,7 +30,7 @@ private: bool visible = true; ActivityId parent; std::optional name; - std::chrono::time_point startTime; + TimePoint startTime; }; struct ActivitiesByType -- cgit v1.2.3