From e68d7f68588a02bacba0b0cbdb72719c2101a40b Mon Sep 17 00:00:00 2001 From: wight Date: Wed, 4 Aug 2004 15:48:43 +0000 Subject: Native darwin timer update. Patch by Dan Christiansen git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12955 b3059339-0415-0410-9bf9-f77b7e298cf2 --- osdep/timer-lx.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'osdep/timer-lx.c') 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 #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; -- cgit v1.2.3