General timer class.
More...
#include <Timer.h>
| trippingcyril::timing::Timer::Timer |
( |
const Module * |
module | ) |
|
General constructor
- Parameters
-
| module | The module to register this timer on |
| trippingcyril::timing::Timer::Timer |
( |
const Module * |
module, |
|
|
double |
interval, |
|
|
unsigned int |
maxCycles = 0 |
|
) |
| |
General constructor that will automatically start the timer
- Parameters
-
| module | The module to register this timer on |
| interval | The interval this timer should run on |
| maxCycles | The maximum amount of cycles this timer should run, 0 is infinite |
| virtual trippingcyril::timing::Timer::~Timer |
( |
| ) |
|
|
virtual |
| virtual void trippingcyril::timing::Timer::Finished |
( |
| ) |
|
|
inlineprotectedvirtual |
Called once our timer has ran its last cycle, will not get called if you delete the timer yourself.
| virtual void trippingcyril::timing::Timer::RunJob |
( |
| ) |
|
|
protectedpure virtual |
| void trippingcyril::timing::Timer::Start |
( |
double |
interval | ) |
|
Starts the timer with interval
| void trippingcyril::timing::Timer::Start |
( |
struct timeval & |
tv | ) |
|
Starts the timer with tv as its interval
| void trippingcyril::timing::Timer::StartMaxCycles |
( |
double |
interval, |
|
|
unsigned int |
maxCycles |
|
) |
| |
Starts the timer with interval, but it'll only run for maxCycles
| void trippingcyril::timing::Timer::Stop |
( |
| ) |
|
Stops the timer and it'll get deleted as soon as possible.
The documentation for this class was generated from the following file: