Windows build fix

This commit is contained in:
Roger A. Light
2025-03-28 13:05:12 +00:00
parent dcbe922ed0
commit 503a9120db
+4
View File
@@ -451,8 +451,12 @@ int main(int argc, char *argv[])
return rc;
}
while(run){
#ifdef WIN32
Sleep(1000);
#else
struct timespec ts = {1,0};
nanosleep(&ts, NULL);
#endif
int message_count = message_rate_msg_count;
message_rate_msg_count = 0;
printf("%d msgs/s\n", message_count);