INFM HIL Interface
Interface between Artery simulation and DuTs
Public Member Functions | List of all members
sim_interface::PeriodicTimer Class Reference

Timer to call given callback periodically with given event More...

#include <PeriodicTimer.h>

Public Member Functions

 PeriodicTimer (const std::shared_ptr< boost::asio::io_service > &io, int periodMs, SimEvent event, std::function< void(const SimEvent &)> callback)
 
void start ()
 
void stop ()
 

Detailed Description

Timer to call given callback periodically with given event

Member Function Documentation

◆ start()

void sim_interface::PeriodicTimer::start ( )

Start the async waiting on the constructed timer with tick() as callback

◆ stop()

void sim_interface::PeriodicTimer::stop ( )

Cancel the constructed timer


The documentation for this class was generated from the following files: