aboutsummaryrefslogblamecommitdiffhomepage
path: root/lib/Support/Timer.cpp
blob: da96981079aef41dfb4e0fbd5722835650176c38 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                
                                

                                        
                                      




                        
                                                    


                             
                                                           
 
//===-- 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;
using namespace llvm;

WallTimer::WallTimer() {
  startMicroseconds = util::getWallTimeVal().usec();
}

uint64_t WallTimer::check() {
  return util::getWallTimeVal().usec() - startMicroseconds;
}