IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
Loading...
Searching...
No Matches
clock_types.hxx File Reference

Go to the source code of this file.

Classes

struct  ice::Ts
 Represents time interval of seconds. More...
struct  ice::Tms
 Represents time interval of milliseconds. More...
struct  ice::Tus
 Represents time interval of microseconds. More...
struct  ice::Tns
 Represents time interval of nanoseconds. More...
struct  ice::Timestamp
 Represents platform native timestamp with undefined representation. More...
struct  ice::ClockFrequency
 Represent the current systems clock frequency. Can be used to transform timestamps to time values. More...
struct  ice::detail::TimeTypeTraits< T0, T1 >

Namespaces

namespace  ice
 SPDX-License-Identifier: MIT.
namespace  ice::detail
namespace  ice::detail::ct_tests

Concepts

concept  ice::TimeType

Typedefs

template<ice::TimeType T0, ice::TimeType T1>
using ice::detail::TTHighestPrecisionType = typename TimeTypeTraits<T0, T1>::HighestPrecision
template<ice::TimeType T0, ice::TimeType T1>
using ice::detail::TTLowestPrecisionType = typename TimeTypeTraits<T0, T1>::LowestPrecision

Functions

constexpr auto ice::operator""_Ts (long double time) noexcept -> ice::Ts
constexpr auto ice::operator""_Ts (unsigned long long time) noexcept -> ice::Ts
constexpr auto ice::operator""_Tms (unsigned long long time) noexcept -> ice::Tms
constexpr auto ice::operator""_Tus (unsigned long long time) noexcept -> ice::Tus
constexpr auto ice::operator""_Tns (unsigned long long time) noexcept -> ice::Tns
constexpr auto ice::operator<=> (ice::TimeType auto left, TimeType auto right) noexcept
constexpr auto ice::operator+ (ice::TimeType auto left, TimeType auto right) noexcept
constexpr auto ice::operator- (ice::TimeType auto left, TimeType auto right) noexcept
constexpr auto ice::operator== (ice::TimeType auto left, TimeType auto right) noexcept

Variables

static constexpr ice::detail::TTLowestPrecisionType< Tms, Tusice::t0 { 1 }
static constexpr Tns ice::t1 = t0