Template Struct time_span

Struct Documentation

template<typename time_type = fast_time>
struct legion::core::time::time_span

Public Functions

time_span() = default
template<typename other_time>
inline constexpr time_span(const std::chrono::duration<other_time> &other) noexcept
template<typename other_time>
inline constexpr time_span(const time_span<other_time> &other) noexcept
template<typename other_time>
inline constexpr time_span(std::chrono::duration<other_time> &&other) noexcept
template<typename other_time>
inline constexpr time_span(time_span<other_time> &&other) noexcept
template<typename other_time>
inline constexpr time_span(other_time other) noexcept
inline explicit time_span(time_type duration) noexcept
template<typename T>
inline T hours()
template<typename T>
inline T minutes()
template<typename T>
inline T seconds()
template<typename T>
inline T milliseconds()
template<typename T>
inline T microseconds()
template<typename T>
inline T nanoseconds()
inline fast_time hours()
inline fast_time minutes()
inline fast_time seconds()
inline fast_time milliseconds()
inline fast_micro_seconds microseconds()
inline fast_nano_seconds nanoseconds()
inline operator std::chrono::duration<time_type>&()
inline operator std::chrono::duration<time_type>() const
inline operator time_type() const
inline constexpr time_span &operator++() noexcept(is_arithmetic_v<time_type>)
inline constexpr time_span operator++(int) noexcept(is_arithmetic_v<time_type>)
inline constexpr time_span &operator--() noexcept(is_arithmetic_v<time_type>)
inline constexpr time_span operator--(int) noexcept(is_arithmetic_v<time_type>)
inline constexpr time_span &operator+=(const time_span &rhs) noexcept(is_arithmetic_v<time_type>)
inline constexpr time_span &operator-=(const time_span &rhs) noexcept(is_arithmetic_v<time_type>)
inline constexpr time_span &operator*=(const time_type &rhs) noexcept(is_arithmetic_v<time_type>)
inline constexpr time_span &operator/=(const time_type &rhs) noexcept(is_arithmetic_v<time_type>)
inline constexpr time_span &operator%=(const time_type &rhs) noexcept(is_arithmetic_v<time_type>)
inline constexpr time_span &operator%=(const std::chrono::duration<time_type> &rhs) noexcept(is_arithmetic_v<time_type>)

Public Members

std::chrono::duration<time_type> duration = std::chrono::duration<time_type>::zero()

Public Static Functions

static inline constexpr time_span zero() noexcept
static inline constexpr time_span min() noexcept
static inline constexpr time_span max() noexcept