|
ASCO Aerial Autonomy
|
Calls given function on a timer in its own thread. More...
#include <async_timer.h>
Public Member Functions | |
| AsyncTimer (std::function< void()> function, std::chrono::duration< double > timer_duration) | |
| Constructor. More... | |
| virtual | ~AsyncTimer () |
| Destructor cleans up running thread. More... | |
| void | start () |
| Starts running the timer thread. More... | |
Calls given function on a timer in its own thread.
| AsyncTimer::AsyncTimer | ( | std::function< void()> | function, |
| std::chrono::duration< double > | timer_duration | ||
| ) |
Constructor.
| function | Function to call |
| timer_duration | The amount of time in between each function call |
|
virtual |
Destructor cleans up running thread.
| void AsyncTimer::start | ( | ) |
Starts running the timer thread.
1.8.6