File evaCountdownTimer.h¶
File List > src > evaCountdownTimer.h
Go to the documentation of this file
#pragma once
#include "evaDelayTimer.h"
namespace eva
{
class CountdownTimer : public DelayTimer
{
public:
using DelayTimer::DelayTimer;
CountdownTimer *setListener(IHandler *listener);
void start(unsigned short period, unsigned char count, IHandler *listener);
void start(unsigned short period, unsigned char count);
unsigned char getRemaining();
private:
void tick() override;
private:
unsigned short period;
unsigned char remainingCount;
};
};