about summary refs log tree commit diff homepage
path: root/include
diff options
context:
space:
mode:
authorEmil Rakadjiev <emil.rakadjiev.bf@hitachi.com>2015-03-09 18:52:11 +0900
committerEmil Rakadjiev <emil.rakadjiev.bf@hitachi.com>2015-03-13 11:37:37 +0900
commit78946863d6d44475bb3363e07587fedb053d65d5 (patch)
tree6c2ce971840fad337f5107364381298054c999ec /include
parentd9b5b92cb1627edce7d476f8fd4328f5ee6f3bc8 (diff)
downloadklee-78946863d6d44475bb3363e07587fedb053d65d5.tar.gz
Timestamp improvements.
Replaced inefficient llvm::sys::Process::GetTimeUsage() with TimeValue::now(),
because in many cases only the wall clock time is needed, not the user
and sys times (which are significantly more expensive to get).
Updated TimingSolver and WallTimer accordingly.
Diffstat (limited to 'include')
-rw-r--r--include/klee/Internal/System/Time.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/klee/Internal/System/Time.h b/include/klee/Internal/System/Time.h
index 5229c8c9..14d23536 100644
--- a/include/klee/Internal/System/Time.h
+++ b/include/klee/Internal/System/Time.h
@@ -10,10 +10,19 @@
 #ifndef KLEE_UTIL_TIME_H
 #define KLEE_UTIL_TIME_H
 
+#include <llvm/Support/TimeValue.h>
+
 namespace klee {
   namespace util {
+
+    /// Seconds spent by this process in user mode.
     double getUserTime();
+
+    /// Wall time in seconds.
     double getWallTime();
+
+    /// Wall time as TimeValue object.
+    llvm::sys::TimeValue getWallTimeVal();
   }
 }