3#include "spark/lib/Export.h"
5#include "spark/base/Platforms.h"
11#ifdef SPARK_OS_WINDOWS
13 concept IsDuration = std::chrono::_Is_duration_v<std::remove_cvref_t<T>>;
16 concept IsDuration = std::chrono::__is_duration<std::remove_cvref_t<T>>::value;
33 Clock& operator=(
const Clock& other) =
default;
34 Clock& operator=(
Clock&& other)
noexcept =
default;
42 [[nodiscard]]
float elapsedTime()
const;
55 [[nodiscard]]
float restart();
58 std::chrono::steady_clock::time_point m_startTime;
62#include "spark/lib/impl/Clock.h"
A class that can be used to measure time like a stopwatch.
Definition Clock.h:23