Oliver Wenzel / Mbed 2 deprecated mbed_amf_controlsystem_iO

Dependencies:   mbed-rtos mbed

Fork of mbed_amf_controlsystem by Matti Borchers

Misc/SystemTimer.h

Committer:
mborchers
Date:
2016-02-03
Revision:
0:8a6003b8bb5b

File content as of revision 0:8a6003b8bb5b:

#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