]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
Move the time function to global scope.
authortrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Mon, 12 Mar 2012 01:04:49 +0000 (01:04 +0000)
committertrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Mon, 12 Mar 2012 01:04:49 +0000 (01:04 +0000)
git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1585 e59a4935-1847-0410-ae03-e826735625c1

src/AST/AST.h
src/AST/ASTmisc.cpp

index 7930ff1ddcaec2e5620747dcd46f687a909d0598..45288527dfdd7fa04f96870bed77276bc79028d7 100644 (file)
@@ -44,6 +44,8 @@ namespace BEEV
   // NB: The boolean value is always true!
   bool BVTypeCheck(const ASTNode& n);
   
+ long getCurrentTime();
+
   ASTVec FlattenKind(Kind k, const ASTVec &children);
 
   // Checks recursively all the way down.
index d01273b88c45d447e7bcaac2674a7501520c96c6..4f01aa863077790e81ada5fd9d4ccfc755d176cd 100644 (file)
@@ -559,4 +559,11 @@ namespace BEEV
     return true;
   } //End of TypeCheck function
 
+  long getCurrentTime()
+  {
+    timeval t;
+    gettimeofday(&t, NULL);
+    return (1000 * t.tv_sec) + (t.tv_usec / 1000);
+  }
+
 };//end of namespace