openledrace/open-led-race_0.0/SoftTimer.h
Luca Borsari 60294709c7 Ver 0.9.6
2020-12-12 17:29:55 +01:00

23 lines
350 B
C++

#ifndef SoftTimer_h
#define SoftTimer_h
#include <Arduino.h>
class SoftTimer {
public:
SoftTimer(void);
SoftTimer(unsigned long);
void set(unsigned long);
void start(void);
void start(unsigned long);
boolean elapsed(void);
private:
unsigned long startTime=0;
unsigned long timeout=0;
};
#endif