diff options
Diffstat (limited to 'compat/time.hpp')
-rw-r--r-- | compat/time.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
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<typename repr, typename ratio = std::ratio<1>> using duration = std::chrono::duration<repr, ratio>; template<typename t, typename u> -static inline constexpr auto time_cast(const u& in) +static inline constexpr auto time_cast(u&& in) { return std::chrono::duration_cast<t>(in); } @@ -17,7 +17,6 @@ using secs = duration<double>; using secs_ = duration<long>; using ms = duration<double, std::milli>; using us = duration<double, std::micro>; -using us_ = duration<long long, std::micro>; -using ns = duration<long long, std::nano>; +using ns = duration<double, std::nano>; } // ns time_units |