clock_t startClock, endClock;<br/>
startClock = clock();<br/>
//Код<br/>
endClock = clock();<br/>
diff = difftime(endClock, startClock);<br/>
typedef unsigned long long ull;
inline ull rdtsc() {
unsigned int lo, hi;
asm volatile ( "rdtsc\n" : "=a" (lo), "=d" (hi) );
return ((ull)hi << 32) | lo;
}
Вместо clock.