Changeset 4093


Ignore:
Timestamp:
Dec 6, 2009 10:21:27 PM (5 years ago)
Author:
sam
Message:

Improve rounding in the internal Win32 sleep method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/time.c

    r2305 r4093  
    3939{
    4040#if defined(HAVE_USLEEP)
    41         usleep(usec);
     41    usleep(usec);
    4242#elif defined(HAVE_SLEEP)
    43         Sleep(usec / 1000);
     43    Sleep((usec + 500) / 1000);
    4444#else
    45         /* SLEEP */
     45    /* SLEEP */
    4646#endif
    4747}
Note: See TracChangeset for help on using the changeset viewer.