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

Space-ng SDK: /workspaces/astro/sol3-sdk/cpp/sol3/core/time.h File Reference
Space-ng SDK
time.h File Reference
#include "sol3/core/host_identity.h"
#include "sol3/core/msg/stamp.h"
#include "sol3/log/except.h"
#include <chrono>

Go to the source code of this file.

Classes

class  sol3::core::Periodic< TClock >
 Fixed-rate, phase-aligned ticker for periodic scheduling. More...
 

Namespaces

 sol3
 
 sol3::core
 

Functions

msg::TimePoint sol3::core::timePoint (std::chrono::system_clock::time_point const &time_point)
 Creates a msg::TimePoint from std::chrono::system_clock::time_point. More...
 
msg::TimePoint sol3::core::timePoint (std::chrono::steady_clock::time_point const &time_point)
 Creates a msg::TimePoint from std::chrono::monotonic::time_point. More...
 
std::chrono::system_clock::time_point sol3::core::toChronoSystemClock (msg::TimePoint time_point)
 
template<typename TClock = std::chrono::system_clock>
msg::Stamp sol3::core::stampFrom (typename TClock::time_point const &time_point, msg::StampType stamp_type, uint16_t host_id=hostIdentity().host_id_numeric)
 Creates a msg::Stamp from std::chrono::stead_block::time_point. More...
 
template<typename TClock = std::chrono::system_clock>
msg::Stamp sol3::core::stampNow (msg::StampType stamp_type, uint16_t host_id=hostIdentity().host_id_numeric)
 Creates a send timestamp using the specified clock. More...
 
template<typename TClock = std::chrono::system_clock>
msg::Stamp sol3::core::sendStampNow (uint16_t host_id=hostIdentity().host_id_numeric)
 Creates a send timestamp using the specified clock. More...
 
template<typename TClock = std::chrono::system_clock>
msg::Stamp sol3::core::recvStampNow (uint16_t host_id=hostIdentity().host_id_numeric)
 Creates a receive timestamp using the specified clock. More...
 
template<typename TClock = std::chrono::system_clock>
msg::Stamp sol3::core::measurementStampFrom (typename TClock::time_point time_point, uint16_t host_id=hostIdentity().host_id_numeric)
 Creates a receive timestamp using the specified clock. More...
 
std::chrono::nanoseconds sol3::core::toDuration (double seconds)
 
template<typename TRep , typename TPeriod >
double sol3::core::toSeconds (std::chrono::duration< TRep, TPeriod > const &duration)
 
template<typename TClock >
double sol3::core::toSeconds (std::chrono::time_point< TClock > const &time_point)
 
template<class TP0 , class... TPn>
constexpr TP0 sol3::core::minTimePoint (const TP0 &first, TPn const &... rest)
 Returns the earliest of the given time points. More...