|
EpcTools
An event based multi-threaded C++ development framework.
|
Implements a stopwatch style timer. More...
#include <etimer.h>
Public Member Functions | |
| ETimer () | |
| Default constructor. More... | |
| ETimer (const ETimer &a) | |
| Copy constructor. More... | |
| ETimer (const epctime_t t) | |
| Class constructor. More... | |
| ~ETimer () | |
| Class desctructor. More... | |
| Void | Start () |
| Starts the timer. More... | |
| Void | Stop () |
| Stops the timer. More... | |
| Void | Set (epctime_t a) |
| Assigns a value to the timer. More... | |
| epctime_t | MilliSeconds (Bool bRestart=False) |
| Retrieves the current value of the timer in milliseconds. More... | |
| epctime_t | MicroSeconds (Bool bRestart=False) |
| Retrieves the current value of the timer in microseconds. More... | |
| ETimer & | operator= (const ETimer &a) |
| Assignment operator. More... | |
| ETimer & | operator= (const epctime_t t) |
| Assignment operator. More... | |
| operator epctime_t () | |
| Retrieves the internal epctime_t value. More... | |
Implements a stopwatch style timer.
| ETimer::ETimer | ( | ) |
Default constructor.
| ETimer::ETimer | ( | const epctime_t | t | ) |
Class constructor.
| t | an epctime_t value to initilize the timer. |
| ETimer::~ETimer | ( | ) |
Class desctructor.
Retrieves the current value of the timer in microseconds.
| bRestart | if True, the timer is restarted, otherwise it continues. |
Retrieves the current value of the timer in milliseconds.
| bRestart | if True, the timer is restarted, otherwise it continues. |
|
inline |
Retrieves the internal epctime_t value.
Assignment operator.
| t | the epctime_t value to assign. |
| void ETimer::Set | ( | epctime_t | a | ) |
Assigns a value to the timer.
| a | the value to assign to the timer. |
| void ETimer::Start | ( | ) |
Starts the timer.
| void ETimer::Stop | ( | ) |
Stops the timer.
1.8.16