summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-01-04 15:55:01 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-01-04 15:55:01 (GMT)
commit320e90ef5aabc50f6bfb3d32b8cb95702a446d98 (patch)
tree9f34fb26ed44b27de2ea0e26125a855884e003c4 /Source/kwsys/SystemTools.cxx
parent8032c5cd886ece2c18b4a4b04117efdeafa23088 (diff)
downloadCMake-320e90ef5aabc50f6bfb3d32b8cb95702a446d98.zip
CMake-320e90ef5aabc50f6bfb3d32b8cb95702a446d98.tar.gz
CMake-320e90ef5aabc50f6bfb3d32b8cb95702a446d98.tar.bz2
ENH: Add a delay method
Diffstat (limited to 'Source/kwsys/SystemTools.cxx')
-rw-r--r--Source/kwsys/SystemTools.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index b816099..b3b1e7a 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -2100,6 +2100,15 @@ kwsys_stl::string SystemTools::FileExistsInParentDirectories(const char* fname,
return "";
}
+void SystemTools::Delay(unsigned int msec)
+{
+#ifdef _WIN32
+ Sleep(msec);
+#else
+ usleep(msec * 1000);
+#endif
+}
+
// These must NOT be initialized. Default initialization to zero is
// necessary.
unsigned int SystemToolsManagerCount;