aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/Core/ExecutorTimers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Core/ExecutorTimers.cpp')
-rw-r--r--lib/Core/ExecutorTimers.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/lib/Core/ExecutorTimers.cpp b/lib/Core/ExecutorTimers.cpp
index 6a5314ca..06fd4be7 100644
--- a/lib/Core/ExecutorTimers.cpp
+++ b/lib/Core/ExecutorTimers.cpp
@@ -13,6 +13,7 @@
#include "Executor.h"
#include "PTree.h"
#include "StatsTracker.h"
+#include "ExecutorTimerInfo.h"
#include "klee/ExecutionState.h"
#include "klee/Internal/Module/InstructionInfoTable.h"
@@ -93,7 +94,7 @@ void Executor::initTimers() {
}
if (MaxTime) {
- addTimer(new HaltTimer(this), MaxTime);
+ addTimer(new HaltTimer(this), MaxTime.getValue());
}
}
@@ -103,23 +104,6 @@ Executor::Timer::Timer() {}
Executor::Timer::~Timer() {}
-class Executor::TimerInfo {
-public:
- Timer *timer;
-
- /// Approximate delay per timer firing.
- double rate;
- /// Wall time for next firing.
- double nextFireTime;
-
-public:
- TimerInfo(Timer *_timer, double _rate)
- : timer(_timer),
- rate(_rate),
- nextFireTime(util::getWallTime() + rate) {}
- ~TimerInfo() { delete timer; }
-};
-
void Executor::addTimer(Timer *timer, double rate) {
timers.push_back(new TimerInfo(timer, rate));
}