|
Trippin Cyril
|
#include <Timer.h>
Public Types | |
| typedef std::function< void()> | TimerLamdbaCallback |
Public Member Functions | |
| LamdbaTimer (const Module *module, double interval, unsigned int maxCycles, const TimerLamdbaCallback &callback) | |
| LamdbaTimer (const Module *module, const TimerLamdbaCallback &callback) | |
| virtual | ~LamdbaTimer () |
Public Member Functions inherited from trippingcyril::timing::Timer | |
| Timer (const Module *module) | |
| Timer (const Module *module, double interval, unsigned int maxCycles=0) | |
| virtual | ~Timer () |
| void | Start (double interval) |
| void | Start (struct timeval &tv) |
| void | StartMaxCycles (double interval, unsigned int maxCycles) |
| void | Stop () |
Public Member Functions inherited from trippingcyril::trippingcyril::Event | |
| Event (const Module *module) | |
| virtual | ~Event () |
| const Module * | GetModule () const |
Protected Member Functions | |
| void | RunJob () override |
Protected Member Functions inherited from trippingcyril::timing::Timer | |
| virtual void | Finished () |
Protected Member Functions inherited from trippingcyril::trippingcyril::Event | |
| event_base * | GetEventBase () const |
| evdns_base * | GetDNSBase () const |
Additional Inherited Members | |
Protected Attributes inherited from trippingcyril::trippingcyril::Event | |
| const Module * | module |
| typedef std::function<void()> trippingcyril::timing::LamdbaTimer::TimerLamdbaCallback |
Typedef for the functions
| trippingcyril::timing::LamdbaTimer::LamdbaTimer | ( | const Module * | module, |
| double | interval, | ||
| unsigned int | maxCycles, | ||
| const TimerLamdbaCallback & | callback | ||
| ) |
General constructor
| 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 |
| callback | The function to execute every loop |
| trippingcyril::timing::LamdbaTimer::LamdbaTimer | ( | const Module * | module, |
| const TimerLamdbaCallback & | callback | ||
| ) |
General constructor
| module | The module to register this timer on |
| callback | The function to execute every loop |
|
inlinevirtual |
Deconstructor
|
overrideprotectedvirtual |
Called on every interval
Implements trippingcyril::timing::Timer.
1.8.6