Helios Engine
A modular ECS based data-oriented C++23 game engine framework
Loading...
Searching...
No Matches
helios::utils::details::ClockTrait Concept Reference

Concept for clock types compatible with std::chrono clocks. More...

#include <timer.hpp>

Concept definition

template<typename T>
concept ClockTrait = requires {
typename T::rep;
typename T::period;
typename T::duration;
typename T::time_point;
{ T::now() } -> std::same_as<typename T::time_point>;
}
Concept for clock types compatible with std::chrono clocks.
Definition timer.hpp:21

Detailed Description

Concept for clock types compatible with std::chrono clocks.

Requires nested types rep, period, duration and time_point, and a static now() function.

Definition at line 21 of file timer.hpp.