IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
Loading...
Searching...
No Matches
clock.hxx File Reference

Go to the source code of this file.

Classes

struct  ice::Clock
 Simple object representing a clock by using two timestamps. More...
struct  ice::SystemClock
 A system clock provides access to the actual time on the running system. More...
struct  ice::CustomClock
 A custom clock allows to control the "speed" of calculated time. More...
struct  ice::Timer
struct  ice::Timeline
struct  ice::Stopwatch

Namespaces

namespace  ice
 SPDX-License-Identifier: MIT.
namespace  ice::clock
namespace  ice::timer
namespace  ice::timeline
namespace  ice::stopwatch

Functions

auto ice::clock::now () noexcept -> ice::Timestamp
auto ice::clock::clock_frequency () noexcept -> ice::ClockFrequency
auto ice::clock::create_clock () noexcept -> ice::SystemClock
auto ice::clock::create_clock (ice::Clock const &clock, ice::f32 modifier) noexcept -> ice::CustomClock
void ice::clock::update (ice::SystemClock &clock) noexcept
void ice::clock::update (ice::CustomClock &clock) noexcept
void ice::clock::update_max_delta (ice::CustomClock &clock, ice::Tns max_delta) noexcept
auto ice::clock::elapsed (ice::Clock const &clock) noexcept -> ice::Tns
auto ice::clock::elapsed (ice::Timestamp start, ice::Timestamp end) noexcept -> ice::Tns
auto ice::timer::create_timer (ice::Clock const &clock, ice::Tns timer_step) noexcept -> ice::Timer
auto ice::timer::create_timer (ice::Clock const &clock, ice::Tns timer_step, ice::Timestamp initial_timestamp) noexcept -> ice::Timer
bool ice::timer::update (ice::Timer &timer) noexcept
bool ice::timer::update_by_step (ice::Timer &timer) noexcept
auto ice::timer::elapsed (ice::Timer const &timer) noexcept -> ice::Tns
auto ice::timer::elapsed_us (ice::Timer const &timer) noexcept -> ice::Tus
auto ice::timer::alpha (ice::Timer const &timer) noexcept -> ice::f32
auto ice::timeline::create_timeline (ice::Clock const &clock) noexcept -> ice::Timeline
void ice::timeline::reset (ice::Timeline &timeline) noexcept
auto ice::timeline::elapsed (ice::Timeline const &timeline) noexcept -> ice::Tns
auto ice::timeline::elapsed_us (ice::Timeline const &timeline) noexcept -> ice::Tus
auto ice::stopwatch::create_stopwatch () noexcept -> ice::Stopwatch
auto ice::stopwatch::create_stopwatch (ice::Clock const &clock) noexcept -> ice::Stopwatch
auto ice::stopwatch::elapsed (ice::Stopwatch const &stopwatch) noexcept -> ice::Tns
auto ice::stopwatch::elapsed_us (ice::Stopwatch const &stopwatch) noexcept -> ice::Tus
void ice::stopwatch::start (ice::Stopwatch &stopwatch) noexcept
void ice::stopwatch::stop (ice::Stopwatch &stopwatch) noexcept