24 #ifndef SKA_CHEETAH_UTILS_TIMEPOINT_H 25 #define SKA_CHEETAH_UTILS_TIMEPOINT_H 39 template<
typename ClockType,
typename Duration =
typename ClockType::duration>
40 struct TimePoint :
public std::chrono::time_point<ClockType, Duration>
42 explicit TimePoint(
const Duration& d =
typename ClockType::duration() );
43 explicit TimePoint(
const std::chrono::system_clock::time_point& tp );
44 TimePoint(
const std::chrono::time_point<ClockType, Duration>& tp );
45 TimePoint( std::chrono::time_point<ClockType, Duration>&& );
47 operator typename std::chrono::system_clock::time_point()
const;
58 template<
typename ClockType,
typename Duration,
typename Duration2>
61 template<
typename ClockType,
typename Duration,
typename Duration2>
64 template<
typename ClockType,
typename Duration,
typename Duration2>
72 template<
typename ClockType,
typename Duration>
73 std::ostream& operator<<(std::ostream&, TimePoint<ClockType>
const& tp);
78 #include "cheetah/utils/detail/TimePoint.cpp" 80 #endif // SKA_CHEETAH_UTILS_TIMEPOINT_H Some limits and constants for FLDO.
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...
extension of std::chrono::time_point for chhetah clocks