Created
April 29, 2019 23:24
-
-
Save kdrnic/348f7f4fcb8eb52228afb4f3982ea51b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uint64_t rdtsc() | |
{ | |
uint64_t ret; | |
asm volatile ("rdtsc" : "=A"(ret)); | |
return ret; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment