Actually use sleep param.

This commit is contained in:
Themaister 2011-11-30 16:26:23 +01:00
parent f7399bbc8b
commit 23aa8bbe7a

View File

@ -385,14 +385,14 @@ static inline uint8_t is_little_endian(void)
return u.y[0];
}
static inline void ssnes_sleep(unsigned usec)
static inline void ssnes_sleep(unsigned msec)
{
#ifdef _WIN32
Sleep(10);
Sleep(msec);
#else
struct timespec tv = {
.tv_sec = 0,
.tv_nsec = 10000000
.tv_sec = msec / 1000,
.tv_nsec = (msec % 1000) * 1000000,
};
nanosleep(&tv, NULL);
#endif