https://github.com/moritzrinow/winwatch
Simple, high precision stopwatch for Windows written in C
https://github.com/moritzrinow/winwatch
benchmark stopwatch-in-c windows
Last synced: 2 months ago
JSON representation
Simple, high precision stopwatch for Windows written in C
- Host: GitHub
- URL: https://github.com/moritzrinow/winwatch
- Owner: moritzrinow
- License: mit
- Created: 2019-12-30T22:45:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-01T20:10:53.000Z (over 6 years ago)
- Last Synced: 2025-03-12T05:41:25.320Z (over 1 year ago)
- Topics: benchmark, stopwatch-in-c, windows
- Language: C
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# winwatch
Simple, high precision stopwatch for Windows written in C
```C
WinWatch w = StartWinWatch();
for (int i = 0; i < 1000; i++) {
void *mem = malloc(1000000);
free(mem);
}
StopWinWatch(w);
double elapsedMs = WinWatchElapsedMilliD(w);
printf("ElapsedMs: %f\n", elapsedMs);
```