Skip to content

Commit

Permalink
fix: small optimization to usleep on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Dec 1, 2024
1 parent f1a903c commit 6cb3c60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/win-compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
// Define the usleep function for Windows
void win_compat_usleep(unsigned int microseconds) {
// Convert microseconds to milliseconds
unsigned int milliseconds = microseconds / 1000;
unsigned int milliseconds = microseconds >> 10; // /1024;
Sleep(milliseconds);
}

0 comments on commit 6cb3c60

Please sign in to comment.