summaryrefslogtreecommitdiffstats
path: root/osdep/timer-lx.c
diff options
context:
space:
mode:
authorwight <wight@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-08-04 15:48:43 +0000
committerwight <wight@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-08-04 15:48:43 +0000
commite68d7f68588a02bacba0b0cbdb72719c2101a40b (patch)
tree7d9c2827dd588f35b349a011633353819c948acd /osdep/timer-lx.c
parent37e68033df4a76d098b18b06f1ca87cdcdf1c978 (diff)
downloadmpv-e68d7f68588a02bacba0b0cbdb72719c2101a40b.tar.bz2
mpv-e68d7f68588a02bacba0b0cbdb72719c2101a40b.tar.xz
Native darwin timer update.
Patch by Dan Christiansen <danchr@daimi.au.dk> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12955 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'osdep/timer-lx.c')
-rw-r--r--osdep/timer-lx.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/osdep/timer-lx.c b/osdep/timer-lx.c
index 4321e46bfa..4bf2b0bf96 100644
--- a/osdep/timer-lx.c
+++ b/osdep/timer-lx.c
@@ -6,6 +6,13 @@
#include <sys/time.h>
#include "../config.h"
+const char *timer_name() =
+#ifdef HAVE_NANOSLEEP
+ "nanosleep()";
+#else
+ "usleep()";
+#endif
+
int usec_sleep(int usec_delay)
{
#ifdef HAVE_NANOSLEEP
@@ -18,7 +25,6 @@ int usec_sleep(int usec_delay)
#endif
}
-
// Returns current time in microseconds
unsigned int GetTimer(){
struct timeval tv;