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

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

#include <timer.hpp>

Concept definition

template<typename T>
concept helios::details::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.