3 * Copyright 2011 Daniel Borkmann <dborkma@tik.ee.ethz.ch>
6 * Faculty of Computer Science, Mathematics and Natural Sciences,
7 * Leipzig University of Applied Sciences (HTWK Leipzig)
14 * Generate 64-bit timestamp.
17 static unsigned long long getticks(void)
21 __asm__
__volatile__("rdtsc" : "=a" (__a
), "=d" (__d
));
22 return ((long long)__a
) | (((long long)__d
)<<32);
25 #endif /* TICKS_X86 */