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

Represents time interval of milliseconds. 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 Tus () const noexcept
constexpr operator Tns () const noexcept

Public Attributes

ValueType value

Static Public Attributes

static constexpr ValueType Constant_Precision = 1000

Detailed Description

Represents time interval of milliseconds.

Can be used when calculating time passage, usable with sleeps or waits.

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

Member Typedef Documentation

◆ TypeTag

◆ ValueType

Member Function Documentation

◆ operator Tns()

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

◆ operator Ts()

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

◆ operator Tus()

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

Member Data Documentation

◆ Constant_Precision

ValueType ice::Tms::Constant_Precision = 1000
staticconstexpr

◆ value

ValueType ice::Tms::value

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