36#ifdef SFML_SYSTEM_ANDROID
71#if defined(SFML_SYSTEM_ANDROID) && defined(SFML_ANDROID_USE_SUSPEND_AWARE_CLOCK)
74using ClockImpl = std::conditional_t<std::chrono::high_resolution_clock::is_steady, std::chrono::high_resolution_clock, std::chrono::steady_clock>;
77static_assert(ClockImpl::is_steady,
"Provided implementation is not a monotonic clock");
78static_assert(std::ratio_less_equal_v<ClockImpl::period, std::micro>,
79 "Clock resolution is too low. Expecting at least a microsecond precision");
160 priv::ClockImpl::time_point m_refPoint{priv::ClockImpl::now()};
161 priv::ClockImpl::time_point m_stopPoint;
#define SFML_SYSTEM_API
Definition Export.hpp:42
Utility class that measures the elapsed time.
Definition Clock.hpp:92
Time restart()
Restart the clock.
Time reset()
Reset the clock.
bool isRunning() const
Check whether the clock is running.
void start()
Start the clock.
Time getElapsedTime() const
Get the elapsed time.
void stop()
Stop the clock.
Represents a time value.
Definition Time.hpp:42
std::conditional_t< std::chrono::high_resolution_clock::is_steady, std::chrono::high_resolution_clock, std::chrono::steady_clock > ClockImpl
Chooses a monotonic clock of highest resolution.
Definition Clock.hpp:74
Definition BlendMode.hpp:34