27#include "timemory/components/timing/backends.hpp"
29#include "timemory/tpls/cereal/cereal.hpp"
50 std::ios_base::fixed | std::ios_base::dec | std::ios_base::showpoint;
54 static int64_t
get_unit() {
return units::sec; }
63 return tim::get_clock_real_now<int64_t, ratio_t>();
66 auto load()
const {
return value; }
75 value = (
record() - value);
79 template <
typename Archive>
82 ar(cereal::make_nvp(
"laps", laps));
83 ar(cereal::make_nvp(
"value", value));
84 ar(cereal::make_nvp(
"accum", value));
Definition for various functions for base_printer in operations.
std::string time_repr(int64_t _unit)
tim::mpl::apply< std::string > string
const std::string std::ostream * os
static auto get_precision()
static int64_t get_unit()
double get() const noexcept
friend std::ostream & operator<<(std::ostream &os, const this_type &obj)
auto get_display() const noexcept
static value_type record() noexcept
static std::string get_description()
static std::string get_label()
static std::string get_display_unit()
static const fmtflags format_flags
static const short precision
void print(std::ostream &os) const
void serialize(Archive &ar, const unsigned int)
std::ios_base::fmtflags fmtflags
static auto get_format_flags()
invoked from the base class to provide default printing behavior