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

Functions

auto create_timer (ice::Clock const &clock, ice::Tns timer_step) noexcept -> ice::Timer
auto create_timer (ice::Clock const &clock, ice::Tns timer_step, ice::Timestamp initial_timestamp) noexcept -> ice::Timer
bool update (ice::Timer &timer) noexcept
bool update_by_step (ice::Timer &timer) noexcept
auto elapsed (ice::Timer const &timer) noexcept -> ice::Tns
auto elapsed_us (ice::Timer const &timer) noexcept -> ice::Tus
auto alpha (ice::Timer const &timer) noexcept -> ice::f32

Function Documentation

◆ alpha()

auto ice::timer::alpha ( ice::Timer const & timer) -> ice::f32
noexcept

◆ create_timer() [1/2]

auto ice::timer::create_timer ( ice::Clock const & clock,
ice::Tns timer_step ) -> ice::Timer
noexcept

◆ create_timer() [2/2]

auto ice::timer::create_timer ( ice::Clock const & clock,
ice::Tns timer_step,
ice::Timestamp initial_timestamp ) -> ice::Timer
noexcept

◆ elapsed()

auto ice::timer::elapsed ( ice::Timer const & timer) -> ice::Tns
noexcept

◆ elapsed_us()

auto ice::timer::elapsed_us ( ice::Timer const & timer) -> ice::Tus
noexcept

◆ update()

bool ice::timer::update ( ice::Timer & timer)
noexcept

◆ update_by_step()

bool ice::timer::update_by_step ( ice::Timer & timer)
noexcept