Helios Engine
A modular ECS based data-oriented C++23 game engine framework
Loading...
Searching...
No Matches
timer.hpp File Reference
#include <helios/utils/common_traits.hpp>
#include <chrono>
#include <concepts>
#include <cstdint>
#include <ratio>
#include <type_traits>

Go to the source code of this file.

Classes

class  helios::utils::Timer< Clock >
 High–resolution timer with configurable clock and rich elapsed API. More...

Namespaces

namespace  helios
namespace  helios::utils
namespace  helios::utils::details

Concepts

concept  helios::utils::details::ClockTrait
 Concept for clock types compatible with std::chrono clocks.
concept  helios::utils::details::DurationTrait
 Concept for duration types based on std::chrono::duration.

Typedefs

template<typename Rep, typename Period>
using helios::utils::details::NormalizedDuration = std::chrono::duration<Rep, Period>
 Helper alias to normalize a duration to its canonical std::chrono::duration form.
template<typename Clock, typename Rep, typename Period>
using helios::utils::details::NormalizedClockDuration = std::chrono::duration<Rep, Period>
 Helper alias to normalize a clock's duration to a specific rep/period.