Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed_amf_controlsystem by
Diff: Misc/SystemTimer.h
- Revision:
- 0:8a6003b8bb5b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Misc/SystemTimer.h Wed Feb 03 17:19:21 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