I have to use rdtsc on ubuntu for performance evaluation. But i am not getting the correct value. I am placing a sleep og 10 seconds, but value i get is some 1 sec... i dont know where im going wrong?

#include<sys/time.h>
#include<time.h >
#include<stdio. h>
typedef unsigned long long ticks;

static __inline__ ticks getticks(void)
{
unsigned a, d;
asm("cpuid");...