#pragma once #include "compat/functional.hpp" #include namespace time_units { template> using duration = std::chrono::duration; template static inline constexpr auto time_cast(const u& in) { return std::chrono::duration_cast(in); } using secs = duration; using secs_ = duration; using ms = duration; using ms_ = duration; using us = duration; using us_ = duration; using ns = duration; } // ns time_units