Permalink
Browse files

Re-added start

  • Loading branch information...
1 parent 7a396f5 commit cafb93c78465bf2968840b546772cfdff35e3d68 @thomasfredericks committed Feb 18, 2016
Showing with 5 additions and 0 deletions.
  1. +4 −0 Chrono.cpp
  2. +1 −0 Chrono.h
View
@@ -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;
View
@@ -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.

0 comments on commit cafb93c

Please sign in to comment.