+ add restart method to timer

This commit is contained in:
wmayer 2015-12-07 17:31:05 +01:00
parent a97992a537
commit c0ee5fbae3
2 changed files with 6 additions and 0 deletions

View File

@ -175,6 +175,11 @@ void StopWatch::start()
d->t.start();
}
int StopWatch::restart()
{
return d->t.restart();
}
int StopWatch::elapsed()
{
return d->t.elapsed();

View File

@ -137,6 +137,7 @@ public:
~StopWatch();
void start();
int restart();
int elapsed();
std::string toString(int ms) const;