diff --git a/source/build/include/sdlayer.h b/source/build/include/sdlayer.h index 4bf12c25d..ae2cfe792 100644 --- a/source/build/include/sdlayer.h +++ b/source/build/include/sdlayer.h @@ -90,12 +90,12 @@ static inline void idle_waitevent(void) SDL_WaitEvent(NULL); } -static inline void idle(void) +static inline void idle(int const msec = 1) { #ifndef _WIN32 - usleep(1000); + usleep(msec * 1000); #else - Sleep(1); + Sleep(msec); #endif }