diff options
Diffstat (limited to 'fbench/src')
-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. **/ |