OpenCPN Partial API docs
|
Continuously run Notify with given interval. More...
#include <periodic_timer.h>
Public Member Functions | |
PeriodicTimer (std::chrono::milliseconds interval) | |
void | Stop () |
Protected Member Functions | |
virtual void | Notify ()=0 |
Continuously run Notify with given interval.
Runs from being constructed until Stop() or going out of scope.
To use, derive a subclass and override the Notify() method.
Similar to wxTimer when used in continuous mode. However, it does not depend on wxEventHandler and also has better destructor semantics.
Definition at line 45 of file periodic_timer.h.
PeriodicTimer::PeriodicTimer | ( | std::chrono::milliseconds | interval | ) |
Definition at line 27 of file periodic_timer.cpp.
|
virtual |
Definition at line 32 of file periodic_timer.cpp.
void PeriodicTimer::Stop | ( | ) |
Definition at line 34 of file periodic_timer.cpp.