Class that represents time.
More...
#include <chrono>
#include <type_traits>
#include <golxzn/os/aliases.hpp>
#include "golxzn/os/chrono/utils.hpp"
#include "golxzn/os/chrono/impl/time.inl"
Go to the source code of this file.
Class that represents time.
- Author
- Ruslan Golovinskii (golxz.nosp@m.n@gm.nosp@m.ail.c.nosp@m.om)
- Date
- 2023-10-24
- Copyright
- Copyright (c) 2023
◆ microseconds()
constexpr time golxzn::os::chrono::microseconds |
( |
const i64 |
value | ) |
|
|
constexprnoexcept |
Make time from integer value (microseconds).
- Parameters
-
value | Integer value (microseconds) |
- Returns
- time
- See also
- seconds(const utils::floating_point_t<T> value)
-
milliseconds(const i32 value)
◆ milliseconds()
constexpr time golxzn::os::chrono::milliseconds |
( |
const i32 |
value | ) |
|
|
constexprnoexcept |
Make time from integer value (milliseconds).
- Parameters
-
value | Integer value (milliseconds) |
- Returns
- time
- See also
- seconds(const utils::floating_point_t<T> value)
-
microseconds(const i64 value)
◆ seconds()
template<class T >
constexpr time golxzn::os::chrono::seconds |
( |
const utils::floating_point_t< T > |
value | ) |
|
|
constexprnoexcept |
Make time from floating point value (seconds).
- Template Parameters
-
- Parameters
-
value | floating point value |
- Returns
- time
- See also
- milliseconds(const i32 value)
-
microseconds(const i64 value)