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.h
- Revision:
- 2:2202f5336acb
- Parent:
- 0:3328857bf625
diff -r bb9b4593a013 -r 2202f5336acb Stopwatch.h --- a/Stopwatch.h Wed Apr 24 16:46:10 2013 +0000 +++ b/Stopwatch.h Wed May 08 09:16:46 2013 +0000 @@ -9,12 +9,18 @@ ~Stopwatch(); void start(); void stop(); + void reset(); char* getTime(); + char* getTimeFshort(); void countDown(int startTime); private: int ms; + int ms1; int sec; int min; - char buffer[9]; + // int sec1; + // int min1; + char buffer1[9]; + char buffer2[7]; Timer sw; }; \ No newline at end of file