mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2026-04-06 06:55:06 +00:00
23 lines
305 B
C++
23 lines
305 B
C++
#ifndef TIMER_H_
|
|
#define TIMER_H_
|
|
|
|
class Timer {
|
|
public:
|
|
Timer();
|
|
|
|
void setTimeout(const uint32_t timeout_ms);
|
|
uint32_t getTriggerTimeInSec() const;
|
|
|
|
bool isActive() const;
|
|
|
|
void reset();
|
|
|
|
bool check();
|
|
void start();
|
|
|
|
private:
|
|
uint32_t _timeout_ms;
|
|
uint32_t _nextTimeout;
|
|
};
|
|
|
|
#endif
|