rdtsc c

PHOTO EMBED

Mon Aug 30 2021 01:00:16 GMT+0000 (UTC)

Saved by @luisjdominguezp #c #c++

uint64_t rdtsc() {
  uint32_t hi, lo;
  __asm__ __volatile__ ("rdtsc" : "=a"(lo), "=d"(hi));
 
  return ( (uint64_t)lo)|( ((uint64_t)hi)<<32 );
 }
content_copyCOPY