From c93129761dc022cfe1bd8751f9935ccfd1b78759 Mon Sep 17 00:00:00 2001 From: Qyriad Date: Wed, 19 Jun 2024 22:11:25 -0600 Subject: [PATCH] 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(-) 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