mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 06:03:45 +01:00
HAVE_NANOSLEEP
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3091 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
1393c53eb4
commit
575828bf12
@ -3,10 +3,11 @@
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
#include <sys/time.h>
|
||||
#include "../config.h"
|
||||
|
||||
int usec_sleep(int usec_delay)
|
||||
{
|
||||
#if 1
|
||||
#ifdef HAVE_NANOSLEEP
|
||||
struct timespec ts;
|
||||
ts.tv_sec = usec_delay / 1000000;
|
||||
ts.tv_nsec = (usec_delay % 1000000) * 1000;
|
||||
|
Loading…
Reference in New Issue
Block a user