summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/Sleep.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/OSSupport/Sleep.cpp')
-rw-r--r--src/OSSupport/Sleep.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/OSSupport/Sleep.cpp b/src/OSSupport/Sleep.cpp
new file mode 100644
index 000000000..70fb06b40
--- /dev/null
+++ b/src/OSSupport/Sleep.cpp
@@ -0,0 +1,19 @@
+
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
+#ifndef _WIN32
+ #include <unistd.h>
+#endif
+
+
+
+
+
+void cSleep::MilliSleep( unsigned int a_MilliSeconds )
+{
+#ifdef _WIN32
+ Sleep(a_MilliSeconds); // Don't tick too much
+#else
+ usleep(a_MilliSeconds*1000);
+#endif
+}