31#include "timemory/tpls/cereal/types.hpp"
55 using duration_type = std::chrono::duration<clock_type::rep, std::nano>;
62 static int64_t
count();
64 template <
typename ArchiveT>
72 template <
typename ArchiveT>
73 void load(ArchiveT& ar,
const unsigned);
75 template <
typename ArchiveT>
76 void save(ArchiveT& ar,
const unsigned)
const;
89template <
typename ArchiveT>
94 ar(cereal::make_nvp(
"time_since_epoch", _val));
95 set_value(std::chrono::system_clock::from_time_t(_val));
98template <
typename ArchiveT>
102 auto _val = std::chrono::system_clock::to_time_t(get_value());
103 ar(cereal::make_nvp(
"time_since_epoch", _val));
106template <
typename ArchiveT>
130#if defined(TIMEMORY_COMPONENT_TIMESTAMP_HEADER_ONLY_MODE) && \
131 TIMEMORY_COMPONENT_TIMESTAMP_HEADER_ONLY_MODE > 0
std::chrono::time_point< std::chrono::system_clock > timestamp_entry_t
typename component::timestamp::time_point_type timestamp_value_t
tim::mpl::apply< std::string > string
this component stores the timestamp of when a bundle was started and is specialized such that the "ti...
static value_type record()
friend std::ostream & operator<<(std::ostream &_os, const timestamp &_ts)
std::chrono::system_clock clock_type
static std::string label()
static std::string as_string(const time_point_type &_tp)
typename clock_type::time_point time_point_type
std::chrono::duration< clock_type::rep, std::nano > duration_type
void save(ArchiveT &ar, const unsigned) const
static value_type get_reference_ts()
timestamp & operator/=(const timestamp &)
static void extra_serialization(ArchiveT &)
timestamp & operator+=(const timestamp &)
std::string get_display() const
static std::string description()
timestamp_entry_t value_type