|
constexpr | time (const std::chrono::microseconds duration) noexcept |
| Constructor that creates time from std::chrono::microseconds.
|
|
template<class Rep , class Period > |
constexpr | time (const std::chrono::duration< Rep, Period > duration) noexcept |
| Constructor that creates time from std::chrono::duration.
|
|
template<class Clock , class Duration = typename Clock::duration> |
constexpr | time (const std::chrono::time_point< Clock, Duration > time_point) noexcept |
| Constructor that creates time from std::chrono::time_point.
|
|
template<class T > |
constexpr | time (const utils::floating_point_t< T > seconds) noexcept |
| Constructor that creates time from seconds floating point value.
|
|
constexpr | time (const i32 milliseconds) noexcept |
| Constructor that creates time from milliseconds value.
|
|
constexpr | time (const i64 microseconds) noexcept |
| Constructor that creates time from microseconds value.
|
|
template<class T = f64> |
constexpr utils::floating_point_t< T > | seconds () const noexcept |
| Returns duration in seconds.
|
|
constexpr i32 | milliseconds () const noexcept |
| Returns duration in milliseconds.
|
|
constexpr i64 | microseconds () const noexcept |
| Returns duration in microseconds.
|
|
constexpr std::chrono::microseconds | duration () const noexcept |
| Converts time to std::chrono::duration.
|
|
template<class Rep , class Period > |
constexpr | operator std::chrono::duration< Rep, Period > () const noexcept |
| Converts time to std::chrono::duration.
|
|
Class that represents time.
It's a wrapper around std::chrono::microseconds. This time representation is based on std::chrono::microseconds and is used in golxzn::os::chrono.
- See also
- golxzn::os::chrono::clock
-
golxzn::os::chrono::fast_clock
-
golxzn::os::chrono::timer
-
golxzn::os::chrono::fast_timer