LoRa_APRS_iGate/lib/System/Timer.h
Peter Buchegger 2c78a002ab big update:
- display update
- timer changed to ms
- allow connections just when connected
2021-03-27 22:02:43 +01:00

26 lines
323 B
C++

#ifndef TIMER_H_
#define TIMER_H_
#include <TimeLib.h>
class Timer {
public:
Timer();
void setTimeout(const uint32_t timeout_ms);
time_t getTriggerTimeInSec() const;
bool isActive() const;
void reset();
bool check();
void start();
private:
uint32_t _timeout_ms;
uint32_t _nextTimeout;
};
#endif