IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
Loading...
Searching...
No Matches
ice::Tus Struct Reference

Represents time interval of microseconds. More...

#include <ice/clock_types.hxx>

Public Types

using TypeTag = ice::StrongNumeric
using ValueType = ice::i64

Public Member Functions

constexpr operator Ts () const noexcept
constexpr operator Tms () const noexcept
constexpr operator Tns () const noexcept

Public Attributes

ValueType value

Static Public Attributes

static constexpr ValueType Constant_Precision = 1000'000

Detailed Description

Represents time interval of microseconds.

Can be used when calculating time passage, usable with sleeps or waits but discourage due to resolution problems between systems.

Note
It's better to avoid sleeps and waits entirely!

Member Typedef Documentation

◆ TypeTag

◆ ValueType

Member Function Documentation

◆ operator Tms()

ice::Tus::operator Tms ( ) const
explicitconstexprnoexcept

◆ operator Tns()

ice::Tus::operator Tns ( ) const
constexprnoexcept

◆ operator Ts()

ice::Tus::operator Ts ( ) const
constexprnoexcept

Member Data Documentation

◆ Constant_Precision

ValueType ice::Tus::Constant_Precision = 1000'000
staticconstexpr

◆ value

ValueType ice::Tus::value

The documentation for this struct was generated from the following file: