Add MDFND_Sleep.

This commit is contained in:
Themaister 2013-02-24 00:23:11 +01:00
parent c7c6f14191
commit ea7354720b

View File

@ -96,6 +96,14 @@ void MDFND_PrintError(const char* err)
#endif
}
void MDFND_Sleep(unsigned int time)
{
#ifdef _WIN32
Sleep(time);
#else
usleep(time * 1000);
#endif
}
#ifdef WANT_THREADING