+ add restart method to timer
This commit is contained in:
@@ -175,6 +175,11 @@ void StopWatch::start()
|
||||
d->t.start();
|
||||
}
|
||||
|
||||
int StopWatch::restart()
|
||||
{
|
||||
return d->t.restart();
|
||||
}
|
||||
|
||||
int StopWatch::elapsed()
|
||||
{
|
||||
return d->t.elapsed();
|
||||
|
||||
@@ -137,6 +137,7 @@ public:
|
||||
~StopWatch();
|
||||
|
||||
void start();
|
||||
int restart();
|
||||
int elapsed();
|
||||
std::string toString(int ms) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user