Specifying the time unit itself is sufficient here.
@@ -479,7 +479,7 @@ SDLState::SDLState() {
using namespace std::chrono_literals;
while (initialized) {
SDL_PumpEvents();
- std::this_thread::sleep_for(std::chrono::duration(10ms));
+ std::this_thread::sleep_for(10ms);
}
});