diff --git a/Chrono.cpp b/Chrono.cpp index b9dff32..c4a9ff3 100644 --- a/Chrono.cpp +++ b/Chrono.cpp @@ -60,6 +60,10 @@ Chrono::Chrono(unsigned long (*getTime_)(void), bool startNow) : _getTime(getTim } } +void Chrono::start(unsigned long offset) { + restart(offset); +} + void Chrono::restart(unsigned long offset) { _startTime = _getTime(); _offset = offset; diff --git a/Chrono.h b/Chrono.h index 7dde9bc..7496091 100644 --- a/Chrono.h +++ b/Chrono.h @@ -74,6 +74,7 @@ class Chrono Chrono(unsigned long (*getTime_)(void), bool startNow=true); // Starts/restarts the chronometer with optional starting offset. + void start(unsigned long offset = 0); void restart(unsigned long offset = 0); // Stops/pauses the chronometer.