From bc7c4cb72790ff7f64917cdb63f9b6c209c75384 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 10 Mar 2018 19:08:03 +0100 Subject: compat/time{,r}: get rid of `long long' --- compat/time.hpp | 5 ++--- compat/timer.hpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'compat') diff --git a/compat/time.hpp b/compat/time.hpp index d34e4e8c..c246a9e5 100644 --- a/compat/time.hpp +++ b/compat/time.hpp @@ -8,7 +8,7 @@ template> using duration = std::chrono::duration; template -static inline constexpr auto time_cast(const u& in) +static inline constexpr auto time_cast(u&& in) { return std::chrono::duration_cast(in); } @@ -17,7 +17,6 @@ using secs = duration; using secs_ = duration; using ms = duration; using us = duration; -using us_ = duration; -using ns = duration; +using ns = duration; } // ns time_units diff --git a/compat/timer.hpp b/compat/timer.hpp index 03b537ac..3ceda093 100644 --- a/compat/timer.hpp +++ b/compat/timer.hpp @@ -33,7 +33,7 @@ public: } template - bool is_elapsed(const t& time_value) + bool is_elapsed(t&& time_value) { using namespace time_units; -- cgit v1.2.3