Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
Public Member Functions | List of all members
ska::cheetah::utils::TimePoint< ClockType, Duration > Struct Template Reference

extension of std::chrono::time_point for chhetah clocks More...

#include <cheetah/utils/detail/TimePoint.h>

Inheritance diagram for ska::cheetah::utils::TimePoint< ClockType, Duration >:
Inheritance graph
Collaboration diagram for ska::cheetah::utils::TimePoint< ClockType, Duration >:
Collaboration graph

Public Member Functions

 TimePoint (const Duration &d=typename ClockType::duration())
 
 TimePoint (const std::chrono::system_clock::time_point &tp)
 
 TimePoint (const std::chrono::time_point< ClockType, Duration > &tp)
 
 TimePoint (std::chrono::time_point< ClockType, Duration > &&)
 
 operator typename std::chrono::system_clock::time_point () const
 
TimePoint< ClockType, Duration > & operator+= (Duration const &)
 
TimePoint< ClockType, Duration > & operator-= (Duration const &)
 
std::time_t to_time_t () const
 convert to a C style time struct. very useful if you want to output the time as a string with e.g. std::put_time
 

Detailed Description

template<typename ClockType, typename Duration = typename ClockType::duration>
struct ska::cheetah::utils::TimePoint< ClockType, Duration >

extension of std::chrono::time_point for chhetah clocks

Template Parameters
ClockTypemust support the std::Clock conecpt as as weel as defining a duration type diff_from_system_epoch

Definition at line 40 of file TimePoint.h.


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