diff options
Diffstat (limited to 'osdep/timer-lx.c')
-rw-r--r-- | osdep/timer-lx.c | 8 |
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; |