|
⏱️ golxzn::os::chrono ⏱️ 1.2.4
Chrono for golxzn's projects.
|
Useful functions and aliases for golxzn::os::chrono. More...
#include <chrono>#include <utility>#include <type_traits>Go to the source code of this file.
Functions | |
| template<class T , class Other > | |
| constexpr auto | golxzn::os::chrono::utils::difference (const Other ¤t, const Other &last) noexcept -> std::conditional_t< std::is_constructible_v< T, std::chrono::microseconds >, T, void > |
| Time difference between two time points. | |
Useful functions and aliases for golxzn::os::chrono.
|
constexprnoexcept |
Time difference between two time points.
| T | return type |
| current | current time (usually std::chrono::time_point) |
| last | last time (usually std::chrono::time_point) |