initial commit

This commit is contained in:
2014-09-05 14:12:37 +02:00
commit 990a6ad03d
29 changed files with 5477 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#include "counter.h"
#include <sys/time.h>
#include <iostream>
#include <cstddef>
Counter::Counter()
{
}
void Counter::start(){
gettimeofday(&startTime, NULL);
}
long Counter::getTime(){
gettimeofday(&endTime, NULL);
long back = (endTime.tv_usec-startTime.tv_usec)/1000+(endTime.tv_sec-startTime.tv_sec)*1000;
this->start();
return back;
}