diff options
author | Geir Storli <geirst@yahooinc.com> | 2022-12-21 15:08:48 +0000 |
---|---|---|
committer | Geir Storli <geirst@yahooinc.com> | 2022-12-21 15:49:53 +0000 |
commit | 40add664cca86e6c1591b9503b6ce7f568874388 (patch) | |
tree | 393824345d0d324b7a578ba1b25739bf4499158f /fbench | |
parent | 762d9bb079b201a4fc72c67853909a8d5a3f4f15 (diff) |
Change from typedef to using in misc C++ code.
Diffstat (limited to 'fbench')
-rw-r--r-- | fbench/src/fbench/client.h | 2 | ||||
-rw-r--r-- | fbench/src/util/timer.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/fbench/src/fbench/client.h b/fbench/src/fbench/client.h index f2f354a35fb..ebdcae4d6cb 100644 --- a/fbench/src/fbench/client.h +++ b/fbench/src/fbench/client.h @@ -183,7 +183,7 @@ private: void run(); public: - typedef std::unique_ptr<Client> UP; + using UP = std::unique_ptr<Client>; /** * The client arguments given to this method becomes the * responsibility of the client. diff --git a/fbench/src/util/timer.h b/fbench/src/util/timer.h index 12aa28e9247..a2ad2578ad6 100644 --- a/fbench/src/util/timer.h +++ b/fbench/src/util/timer.h @@ -17,15 +17,15 @@ class Timer { private: - typedef std::chrono::steady_clock clock; - typedef std::chrono::time_point<clock> time_point; + using clock = std::chrono::steady_clock; + using time_point = std::chrono::time_point<clock>; time_point _time; double _timespan; double _maxTime; bool _running; public: - typedef std::unique_ptr<Timer> UP; + using UP = std::unique_ptr<Timer>; /** * Create a new timer. **/ |