|
arduino-emulator
|
This class can manage a timer which is used as a timeout. More...
#include <serialib.h>
Public Member Functions | |
| timeOut () | |
| Constructor of the class timeOut. | |
| unsigned long int | elapsedTime_ms () |
| Returns the time elapsed since initialization. It write the current time of the day in the structure CurrentTime. Then it returns the difference between CurrentTime and PreviousTime. | |
| void | initTimer () |
| Initialise the timer. It writes the current time of the day in the structure PreviousTime. | |
This class can manage a timer which is used as a timeout.
| unsigned long int timeOut::elapsedTime_ms | ( | ) |
Returns the time elapsed since initialization. It write the current time of the day in the structure CurrentTime. Then it returns the difference between CurrentTime and PreviousTime.