mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
16 lines
269 B
C++
16 lines
269 B
C++
#ifndef APPS_SUSPEND_TIMER_H
|
|
#define APPS_SUSPEND_TIMER_H
|
|
|
|
#include <escher.h>
|
|
|
|
class SuspendTimer : public Timer {
|
|
public:
|
|
SuspendTimer();
|
|
private:
|
|
constexpr static int k_idleBeforeSuspendDuration = 5*60*1000; // In miliseconds
|
|
bool fire() override;
|
|
};
|
|
|
|
#endif
|
|
|