Browse Source

Stopwatch: added restart() method

tempestpy_adaptions
Tim Quatmann 5 years ago
parent
commit
27ac99806e
  1. 5
      src/storm/utility/Stopwatch.cpp
  2. 5
      src/storm/utility/Stopwatch.h

5
src/storm/utility/Stopwatch.cpp

@ -55,6 +55,11 @@ namespace storm {
isStopped = true;
}
void Stopwatch::restart() {
reset();
start();
}
bool Stopwatch::stopped() const {
return isStopped;
}

5
src/storm/utility/Stopwatch.h

@ -66,6 +66,11 @@ namespace storm {
*/
void reset();
/*!
* Reset the stopwatch and immediately start it
*/
void restart();
/*!
* Retrieves whether the watch is stopped.
*/

Loading…
Cancel
Save