mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 02:39:57 +02:00
Various additions, still WIP
This commit is contained in:
parent
cfc2c6a439
commit
c839646e58
7 changed files with 228 additions and 112 deletions
|
@ -7,13 +7,16 @@
|
|||
|
||||
class MyTimer {
|
||||
public:
|
||||
/** Default constructor */
|
||||
MyTimer() : interval(0), previous_millis(0) {}
|
||||
|
||||
/** interval in ms */
|
||||
MyTimer(unsigned long interval);
|
||||
/** Returns true and resets the timer if it has elapsed */
|
||||
bool elapsed();
|
||||
unsigned long interval;
|
||||
|
||||
private:
|
||||
unsigned long interval;
|
||||
unsigned long previous_millis;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue