]> git.stg.codes - stg.git/blobdiff - projects/sgauthstress/main.cpp
Allowed to build on Darwin.
[stg.git] / projects / sgauthstress / main.cpp
index 2388254dab91257ae235d096dff7f2922717f547..b0819c3c016bad9a2e163c6c96cc70f250fef511 100644 (file)
@@ -157,7 +157,8 @@ std::cout << "Successfully loaded " << proto.UserCount() << " users" << std::end
 running = true;
 while (running)
     {
-    usleep(200000);
+    struct timespec ts = {0, 200000000};
+    nanosleep(&ts, NULL);
     }
 
 proto.Stop();