about summary refs log tree commit diff homepage
path: root/lib/Support/Timer.cpp
blob: 4e52feb566a42a07790a47648706f13672263298 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//===-- Timer.cpp ---------------------------------------------------------===//
//
//                     The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include "klee/Config/Version.h"
#include "klee/Internal/Support/Timer.h"
#include "klee/Internal/System/Time.h"

using namespace klee;

WallTimer::WallTimer() {
  start = time::getWallTime();
}

time::Span WallTimer::check() {
  return time::Span(time::getWallTime() - start);
}