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.
Misc/SystemTimer.h
- Committer:
- mborchers
- Date:
- 2016-02-05
- Revision:
- 13:34f7f783ad24
- Parent:
- 0:8a6003b8bb5b
File content as of revision 13:34f7f783ad24:
#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
