klee
TimerStatIncrementer.h
Go to the documentation of this file.
1
//===-- TimerStatIncrementer.h ----------------------------------*- C++ -*-===//
2
//
3
// The KLEE Symbolic Virtual Machine
4
//
5
// This file is distributed under the University of Illinois Open Source
6
// License. See LICENSE.TXT for details.
7
//
8
//===----------------------------------------------------------------------===//
9
10
#ifndef KLEE_TIMERSTATINCREMENTER_H
11
#define KLEE_TIMERSTATINCREMENTER_H
12
13
#include "
klee/Statistics/Statistics.h
"
14
#include "
klee/Support/Timer.h
"
15
16
namespace
klee
{
17
21
class
TimerStatIncrementer
{
22
private
:
23
const
WallTimer
timer
;
24
Statistic
&
statistic
;
25
26
public
:
27
explicit
TimerStatIncrementer
(
Statistic
&
statistic
) :
statistic
(
statistic
) {}
28
~TimerStatIncrementer
() {
29
// record microseconds
30
statistic
+=
timer
.
delta
().
toMicroseconds
();
31
}
32
33
time::Span
delta
()
const
{
return
timer
.
delta
(); }
34
};
35
}
36
37
#endif
/* KLEE_TIMERSTATINCREMENTER_H */
Statistics.h
Timer.h
klee::Statistic
Definition:
Statistic.h:26
klee::TimerStatIncrementer
Definition:
TimerStatIncrementer.h:21
klee::TimerStatIncrementer::timer
const WallTimer timer
Definition:
TimerStatIncrementer.h:23
klee::TimerStatIncrementer::TimerStatIncrementer
TimerStatIncrementer(Statistic &statistic)
Definition:
TimerStatIncrementer.h:27
klee::TimerStatIncrementer::delta
time::Span delta() const
Definition:
TimerStatIncrementer.h:33
klee::TimerStatIncrementer::~TimerStatIncrementer
~TimerStatIncrementer()
Definition:
TimerStatIncrementer.h:28
klee::TimerStatIncrementer::statistic
Statistic & statistic
Definition:
TimerStatIncrementer.h:24
klee::WallTimer
Definition:
Timer.h:25
klee::WallTimer::delta
time::Span delta() const
Return the delta since the timer was created.
Definition:
Timer.cpp:22
klee
Definition:
main.cpp:291
klee::time::Span
Definition:
Time.h:67
klee::time::Span::toMicroseconds
std::uint64_t toMicroseconds() const
Definition:
Time.cpp:159
include
klee
Statistics
TimerStatIncrementer.h
Generated by
1.9.3