HomeWaterLeaksDetection
|
#include <TimePeriod.h>
Public Member Functions | |
TimePeriod (time_t period) | |
Constructor of the class. More... | |
int | isActive () |
Returns information if the period of time has passed. More... | |
Private Attributes | |
time_t | period |
the period of tme, e.g. 2s More... | |
time_t | lastActive |
last time stamp from which the period of time is being measured More... | |
This class is used for counting down a certail period of time, for example, 2s. This class is used, for example, in the LCD controller
Definition at line 14 of file TimePeriod.h.
TimePeriod::TimePeriod | ( | time_t | period | ) |
Constructor of the class.
period | period of time that will be counted down |
Definition at line 3 of file TimePeriod.cpp.
References period.
int TimePeriod::isActive | ( | ) |
Returns information if the period of time has passed.
Definition at line 7 of file TimePeriod.cpp.
References lastActive, and period.
Referenced by Logger::update(), and LCDController::update().
|
private |
last time stamp from which the period of time is being measured
Definition at line 19 of file TimePeriod.h.
Referenced by isActive().
|
private |
the period of tme, e.g. 2s
Definition at line 18 of file TimePeriod.h.
Referenced by isActive(), and TimePeriod().