--- libelwix/src/time.c 2013/06/19 00:11:16 1.3 +++ libelwix/src/time.c 2014/01/14 22:49:39 1.3.22.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: time.c,v 1.3 2013/06/19 00:11:16 misho Exp $ +* $Id: time.c,v 1.3.22.2 2014/01/14 22:49:39 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -283,10 +283,9 @@ time_rdtsc(void) asm volatile("rdtsc" : "=a" (res)); return res; -#elif +#else /* unsupported for this architecture, get time by ordinary way */ struct timespec ts = { 0, 0LL }; - uint64_t res; clock_gettime(CLOCK_UPTIME_PRECISE, &ts); return ((uint64_t) ts.tv_sec * 1000000000 + ts.tv_nsec);