LoRa_APRS_iGate/lib/TaskManager/Timer.h

27 lines
299 B
C
Raw Normal View History

2021-03-12 20:01:47 +01:00
#ifndef TIMER_H_
#define TIMER_H_
#include <TimeLib.h>
class Timer
{
public:
Timer();
void setTimeout(const time_t timeout_sec);
time_t getTriggerTime() const;
bool isActive() const;
void reset();
bool check();
void start();
private:
time_t _timeout_sec;
time_t _timeout;
};
#endif