Stopwatch library with start, stop, and getTime functions. Returns a 00:00:00 in MM:SS:MS format with a max duration of ~30min per documentation on the Timer class. Can easily be output through an LCD/TFT with printf(stopwatch.getTime());
Fork of Stopwatch by
Diff: Stopwatch.cpp
- Revision:
- 1:bb9b4593a013
- Parent:
- 0:3328857bf625
- Child:
- 2:2202f5336acb
diff -r 3328857bf625 -r bb9b4593a013 Stopwatch.cpp --- a/Stopwatch.cpp Mon Jul 16 19:46:34 2012 +0000 +++ b/Stopwatch.cpp Wed Apr 24 16:46:10 2013 +0000 @@ -28,6 +28,6 @@ min = (sec/60); sec = sec - (min*60); ms = (ms/10); - sprintf(buffer, "%02d:%02d:%d", min, sec, ms); + sprintf(buffer, "%02d:%02d:%02d", min, sec, ms); return buffer; } \ No newline at end of file