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

Represents time interval of seconds. More...

#include <ice/clock_types.hxx>

Public Types

using TypeTag = ice::StrongNumeric
using ValueType = ice::f64

Public Member Functions

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

Public Attributes

ValueType value

Static Public Attributes

static constexpr ValueType Constant_Precision = 1.0

Detailed Description

Represents time interval of seconds.

Can be used for user-facing time values, sleeps or waits.

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

Member Typedef Documentation

◆ TypeTag

◆ ValueType

Member Function Documentation

◆ operator Tms()

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

◆ operator Tns()

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

◆ operator Tus()

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

Member Data Documentation

◆ Constant_Precision

ValueType ice::Ts::Constant_Precision = 1.0
staticconstexpr

◆ value

ValueType ice::Ts::value

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