LoRa_APRS_iGate/lib/System/Timer.h
Peter Buchegger 52d41dd9f6 big changes:
- task manager working now in round robbin and returning after every task to arduino
- adding a system class which is managing all bigger things
2021-03-21 22:29:31 +01:00

26 lines
310 B
C++

#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