arduino-emulator
Public Member Functions | List of all members
timeOut Class Reference

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. More...
 
void initTimer ()
 Initialise the timer. It writes the current time of the day in the structure PreviousTime.
 

Detailed Description

This class can manage a timer which is used as a timeout.

Member Function Documentation

◆ elapsedTime_ms()

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.

Returns
The number of microseconds elapsed since the functions InitTimer was called.

The documentation for this class was generated from the following files: