code cleanup

This commit is contained in:
2018-11-30 16:14:45 +01:00
parent 4dd765b341
commit adbdc93315
8 changed files with 60 additions and 42 deletions

View File

@@ -7,11 +7,11 @@ Counter::Counter() {
}
void Counter::start() {
gettimeofday(&startTime, NULL);
gettimeofday(&startTime, nullptr);
}
long Counter::getTime() {
gettimeofday(&endTime, NULL);
gettimeofday(&endTime, nullptr);
long back = (endTime.tv_usec - startTime.tv_usec) / 1000 +
(endTime.tv_sec - startTime.tv_sec) * 1000;
this->start();