11#ifndef HLCC_COMMON_UTILS_HEARTBEATTIMER_HPP
12#define HLCC_COMMON_UTILS_HEARTBEATTIMER_HPP
15#include <boost/asio.hpp>
19 using handle = std::function<void()>;
26 boost::asio::chrono::seconds m_time;
27 boost::asio::io_context m_io;
28 boost::asio::steady_timer m_timer;
Definition heartbeatTimer.hpp:17
std::function< void()> handle
Definition heartbeatTimer.hpp:19
HeartbeatTimer(int time, handle f)
Definition heartbeatTimer.cpp:14
void poll()
Definition heartbeatTimer.cpp:20