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());

Dependents:   ProgrammaBasis

Revision:
0:3328857bf625
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Stopwatch.h	Mon Jul 16 19:46:34 2012 +0000
@@ -0,0 +1,20 @@
+#include "stdio.h"
+#include "stdlib.h"
+#include "math.h"
+#include "mbed.h"
+
+class Stopwatch {
+public:
+    Stopwatch();
+    ~Stopwatch();
+    void start();
+    void stop();
+    char* getTime();
+    void countDown(int startTime);
+private:
+    int ms;
+    int sec;
+    int min;
+    char buffer[9];
+    Timer sw;
+};
\ No newline at end of file