summaryrefslogtreecommitdiffstats
path: root/source/OSSupport/Sleep.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/OSSupport/Sleep.cpp')
-rw-r--r--source/OSSupport/Sleep.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/source/OSSupport/Sleep.cpp b/source/OSSupport/Sleep.cpp
new file mode 100644
index 000000000..70fb06b40
--- /dev/null
+++ b/source/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
+}