blob: 66ba5c2e9632fdf7314c7411b6db8acfdf2cb284 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
//===-- ExecutorTimerInfo.h -------------------------------------*- C++ -*-===//
//
// The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// Class to wrap information for a timer.
//
//===----------------------------------------------------------------------===//
#ifndef KLEE_EXECUTORTIMERINFO_H
#define KLEE_EXECUTORTIMERINFO_H
#include "klee/Internal/System/Time.h"
namespace klee {
class Executor::TimerInfo {
public:
Timer *timer;
/// Approximate delay per timer firing.
time::Span rate;
/// Wall time for next firing.
time::Point nextFireTime;
public:
TimerInfo(Timer *_timer, time::Span _rate)
: timer(_timer),
rate(_rate),
nextFireTime(time::getWallTime() + rate) {}
~TimerInfo() { delete timer; }
};
}
#endif /* KLEE_EXECUTORTIMERINFO_H */
|