This website works better with JavaScript.
Home
Help
Sign In
cacalabs
/
libcaca
mirror of
https://github.com/cacalabs/libcaca.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
7
Wiki
Activity
Browse Source
Improve rounding in the internal Win32 sleep method.
tags/v0.99.beta17
Sam Hocevar
sam
15 years ago
parent
9b6424b385
commit
03584e4665
1 changed files
with
3 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-3
caca/time.c
+ 3
- 3
caca/time.c
View File
@@ -38,11 +38,11 @@
void _caca_sleep(int usec)
{
#if defined(HAVE_USLEEP)
usleep(usec);
usleep(usec);
#elif defined(HAVE_SLEEP)
Sleep(usec / 1000);
Sleep(
(
usec
+ 500)
/ 1000);
#else
/* SLEEP */
/* SLEEP */
#endif
}
Write
Preview
Loading…
Cancel
Save