From 9053a072c0edc3e45adc4131bb6eb8b0614eb6af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Sat, 30 Oct 2010 11:43:11 +0200 Subject: Try to meassure memcpy method speed by clock() when times() not available. --- src/xine-utils/memcpy.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xine-utils/memcpy.c b/src/xine-utils/memcpy.c index b6836aebc..9056749e2 100644 --- a/src/xine-utils/memcpy.c +++ b/src/xine-utils/memcpy.c @@ -39,6 +39,8 @@ #ifdef HAVE_SYS_TIMES_H #include +#else +#include #endif #include @@ -429,7 +431,7 @@ static uint64_t rdtsc(int config_flags) struct tms tp; return times(&tp); #else - return ((uint64_t)0); + return clock(); #endif /* HAVE_SYS_TIMES_H */ } #endif -- cgit v1.2.3