MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
ClockPolicy Concept Reference

Defines the interface required by a stopwatch clock policy. More...

#include <mxvk/include/mxvk/mxvk_stopwatch.hpp>

Concept definition

template<typename T>
concept ClockPolicy = requires(T clock, std::string_view name) {
{ clock.start() } -> std::same_as<void>;
{ clock.stop() } -> std::same_as<void>;
{ clock.echo(name) } -> std::same_as<void>;
{ clock.timePassed() } -> std::convertible_to<unsigned long>;
}
Defines the interface required by a stopwatch clock policy.

Detailed Description

Defines the interface required by a stopwatch clock policy.

A compatible policy must support starting and stopping its clock, printing the measured interval, and querying the currently elapsed time.

Template Parameters
TClock policy type to validate.

Definition at line 16 of file mxvk_stopwatch.hpp.