Matti Borchers / Mbed 2 deprecated mbed_amf_controlsystem

Dependencies:   mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SystemTimer.h Source File

SystemTimer.h

00001 #ifndef SYSTEMTIMER_H_
00002 #define SYSTEMTIMER_H_
00003 
00004 #include "mbed.h"
00005 
00006 class SystemTimer {
00007 
00008 private:
00009 
00010     uint64_t systemUptimeMillis;
00011 
00012     Ticker systemTicker;
00013 
00014 public:
00015 
00016     SystemTimer();
00017 
00018     void systemTickerHandler();
00019 
00020     uint64_t getUptimeMillis();
00021 
00022     bool isTimeoutPassed(uint64_t *timestampMillis, uint32_t timeoutMillis);
00023 
00024 
00025 };
00026 
00027 
00028 
00029 #endif