Created
May 7, 2020 17:25
-
-
Save bzoz/b9f942425007a0f834cae2dcc253f1df 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
#include <windows.h> | |
#include <stdio.h> | |
int main() { | |
LARGE_INTEGER prev, next; | |
BOOL r; | |
QueryPerformanceCounter(&prev); | |
for (;;) { | |
r = QueryPerformanceCounter(&next); | |
if (r == 0 || next.QuadPart < prev.QuadPart) { | |
printf("%d %lld %lld\n", r, next.QuadPart, prev.QuadPart); | |
} | |
prev = next; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment