+ add restart method to timer
This commit is contained in:
parent
a97992a537
commit
c0ee5fbae3
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user