I tried to test rdtsc on VisualStudio 2010. Heres my code:
rdtsc
#include #include #include using
You have not included stdint.h/cstdint at the top apparently. This will work:
#include #include #include #include using namespace std; uint64_t rdtsc() { return __rdtsc(); } int main() { cout << rdtsc() << "\n"; cin.get(); return 0; }