Skip to content

Commit

Permalink
+ add restart method to timer
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Dec 7, 2015
1 parent a97992a commit c0ee5fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Base/Tools.cpp
Expand Up @@ -175,6 +175,11 @@ void StopWatch::start()
d->t.start();
}

int StopWatch::restart()
{
return d->t.restart();
}

int StopWatch::elapsed()
{
return d->t.elapsed();
Expand Down
1 change: 1 addition & 0 deletions src/Base/Tools.h
Expand Up @@ -137,6 +137,7 @@ class BaseExport StopWatch
~StopWatch();

void start();
int restart();
int elapsed();
std::string toString(int ms) const;

Expand Down

0 comments on commit c0ee5fb

Please sign in to comment.