summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-07-31 09:31:27 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-07-31 09:31:27 +0200
commitc232e0af499f70d0d4a6503dac5b2e7c0f10fe16 (patch)
tree83b74389bd1527e932df7c54fa979ca2cdabab79
parent299afe732fba2b2c0bab942c75cde6a3fd132dee (diff)
compat/time: less wastage
-rw-r--r--compat/time.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/compat/time.hpp b/compat/time.hpp
index bc422abe..64cdc6f7 100644
--- a/compat/time.hpp
+++ b/compat/time.hpp
@@ -13,9 +13,9 @@ static inline constexpr auto time_cast(u&& in)
return std::chrono::duration_cast<t>(in);
}
-using secs = duration<double>;
-using ms = duration<double, std::milli>;
-using us = duration<double, std::micro>;
-using ns = duration<double, std::nano>;
+using secs = duration<float>;
+using ms = duration<float, std::milli>;
+using us = duration<float, std::micro>;
+using ns = duration<float, std::nano>;
} // ns time_units