/workspaces/astro/sol3-sdk/cpp/sol3/core/async_periodic.h File Reference

Space-ng SDK: /workspaces/astro/sol3-sdk/cpp/sol3/core/async_periodic.h File Reference
Space-ng SDK
async_periodic.h File Reference
#include "sol3/asio/strand.h"
#include <boost/asio/basic_waitable_timer.hpp>
#include <boost/asio/steady_timer.hpp>
#include <boost/asio/strand.hpp>
#include <chrono>
#include <cstdint>

Go to the source code of this file.

Classes

class  sol3::core::IAsyncPeriodic
 

Namespaces

 sol3
 
 sol3::core
 

Functions

template<typename TClockT = std::chrono::steady_clock>
TClockT::time_point sol3::core::periodicExpiry (typename TClockT::time_point now, typename TClockT::duration period, typename TClockT::duration phase={})
 Computes the next expiry time point for a periodic timer. More...
 
template<typename TRep , typename TPeriod >
std::shared_ptr< IAsyncPeriodic > sol3::core::createAsyncPeriodic (asio::Strand strand, std::chrono::duration< TRep, TPeriod > period)
 Constructs an IAsyncPeriodic timer. More...