Document precision limitation of sf::sleep

This commit is contained in:
Chris Thrasher 2023-04-19 14:10:57 -06:00
parent 1c5c8ad700
commit 92dbac623b

View File

@ -44,6 +44,11 @@ class Time;
/// one provides more accurate sleeping time thanks to some
/// platform-specific tweaks.
///
/// sf::sleep only guarantees millisecond precision. Sleeping
/// for a duration less than 1 millisecond is prone to result
/// in the actual sleep duration being less than what is
/// requested.
///
/// \param duration Time to sleep
///
////////////////////////////////////////////////////////////