__rdtsc | Microsoft LearnGenerates the rdtsc instruction, which returns the processor time stamp. The processor time stamp records the number of clock cycles since the last reset. Syntax unsigned __int64 __rdtsc(); Return value. A 64-bit unsigned integer representing a tick count. Requirements
https://learn.microsoft.com/en-us/cpp/intrinsics/rdtsc?view=msvc-170