summaryrefslogtreecommitdiff
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-11-06 13:06:49 -0500
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-11-06 13:06:49 -0500
commitd7ee016535a12737b9abb41e4032a6a5ab85b095 (patch)
tree0bccce88590c6fb008b186526d67be38ab09beb1 /Source/cmSystemTools.h
parent3d4a2fdc52fa01353653afc8835653559f14e10b (diff)
downloadcmake-d7ee016535a12737b9abb41e4032a6a5ab85b095.tar.gz
Move the hi-res time to system tools
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index 67b93007ed..5218fa9e1d 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -38,6 +38,15 @@ public:
static bool MakeDirectory(const char* path);
/**
+ * Get current time as a double. On certain platforms this will
+ * return higher resolution than seconds:
+ * (1) gettimeofday() -- resolution in microseconds
+ * (2) ftime() -- resolution in milliseconds
+ * (3) time() -- resolution in seconds
+ */
+ static double GetTime();
+
+ /**
* Replace replace all occurances of the string in
* the source string.
*/