diff options
author | tomsmeding <hallo@tomsmeding.nl> | 2015-09-09 22:06:32 +0200 |
---|---|---|
committer | tomsmeding <hallo@tomsmeding.nl> | 2015-09-09 22:20:10 +0200 |
commit | 0711be4f145b3d74bc90658dd71d186716e6a72c (patch) | |
tree | 5077e1e0efb9ecf99aa8314387ce18e9159d36ae /postrun.cpp | |
parent | 79c4014fd2852d12b2489184f53da40247452b8a (diff) |
Add arrays to Postrun
Diffstat (limited to 'postrun.cpp')
-rw-r--r-- | postrun.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/postrun.cpp b/postrun.cpp index eda3714..2c3c97f 100644 --- a/postrun.cpp +++ b/postrun.cpp @@ -2,6 +2,7 @@ #include <fstream> #include <vector> #include <string> +#include <sys/time.h> #include "runtime.h" @@ -32,6 +33,11 @@ int main(int argc,char **argv){ cerr<<"Could not open file '"<<argv[1]<<"'"<<endl; return 1; } + + struct timeval tv; + gettimeofday(&tv,NULL); + srand(tv.tv_sec*1000000+tv.tv_usec); + //string source=readfile(srcf); try { const vector<string> tokens=tokenise(srcf); |