diff options
author | Qyriad <qyriad@qyriad.me> | 2024-06-19 22:11:25 -0600 |
---|---|---|
committer | Qyriad <qyriad@qyriad.me> | 2024-06-20 15:24:27 +0000 |
commit | 8ba1939540a6f53166986446a5b8ee077591167a (patch) | |
tree | da754b800c0fd8b127a2bc4a604c1e347f1ff093 /src/libmain | |
parent | f9594b592b520f6f13acf8b5e61ce676efde49af (diff) |
use a type alias for ProgressBar's chosen time point type
Change-Id: I621a455b1daba806fc498958aee7931fbfc55445
Diffstat (limited to 'src/libmain')
-rw-r--r-- | src/libmain/progress-bar.hh | 4 |
1 files changed, 3 insertions, 1 deletions
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::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 |