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

Represents time interval of nanoseconds. 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 Tus () const noexcept

Public Attributes

ValueType value

Static Public Attributes

static constexpr ValueType Constant_Precision = 1000'000'000

Detailed Description

Represents time interval of nanoseconds.

Can be used when calculating time passing, not usable for sleeps or waits, since most systems don't provide wait resolutions at this scale.

Member Typedef Documentation

◆ TypeTag

◆ ValueType

Member Function Documentation

◆ operator Tms()

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

◆ operator Ts()

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

◆ operator Tus()

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

Member Data Documentation

◆ Constant_Precision

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

◆ value

ValueType ice::Tns::value

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