Oliver Becher / Mbed 2 deprecated parallel_parking

Dependencies:   mbed-rtos mbed

Fork of parallel_parking by Die Ollis

Revision:
0:c871d5355b99
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Misc/SystemTimer.h	Sun Feb 07 06:14:32 2016 +0000
@@ -0,0 +1,29 @@
+#ifndef SYSTEMTIMER_H_
+#define SYSTEMTIMER_H_
+
+#include "mbed.h"
+
+class SystemTimer {
+
+private:
+
+    uint64_t systemUptimeMillis;
+
+    Ticker systemTicker;
+
+public:
+
+    SystemTimer();
+
+    void systemTickerHandler();
+
+    uint64_t getUptimeMillis();
+
+    bool isTimeoutPassed(uint64_t *timestampMillis, uint32_t timeoutMillis);
+
+
+};
+
+
+
+#endif
\ No newline at end of file