mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-01 04:00:32 +00:00
Actually use sleep param.
This commit is contained in:
parent
f7399bbc8b
commit
23aa8bbe7a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user