Browse Source

Improve rounding in the internal Win32 sleep method.

tags/v0.99.beta17
Sam Hocevar sam 15 years ago
parent
commit
03584e4665
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      caca/time.c

+ 3
- 3
caca/time.c View File

@@ -38,11 +38,11 @@
void _caca_sleep(int usec) void _caca_sleep(int usec)
{ {
#if defined(HAVE_USLEEP) #if defined(HAVE_USLEEP)
usleep(usec);
usleep(usec);
#elif defined(HAVE_SLEEP) #elif defined(HAVE_SLEEP)
Sleep(usec / 1000);
Sleep((usec + 500) / 1000);
#else #else
/* SLEEP */
/* SLEEP */
#endif #endif
} }




Loading…
Cancel
Save