50 static_assert (
sizeof (rep) ==
sizeof (stat_val),
"floating_rep and statistic_value must be same size");
51 std::memcpy (&stat_val, &rep,
sizeof (stat_val));
59 static_assert (
sizeof (float_val) ==
sizeof (value),
"floating_rep and statistic_value must be same size");
68 return static_cast<statistic_value> (std::chrono::duration_cast<std::chrono::microseconds> (rep).
count ());
76 return std::chrono::duration_cast<
time_rep> (std::chrono::microseconds (value));
171 this->
m_value.fetch_add (value.count ());
void collect(const Rep &value)
std::uint64_t statistic_value
max_atomic_statistic(void)
floating_rep floating_rep_cast(statistic_value value)
int count(int &result, const cub_regex_object ®, const std::string &src, const int position, const INTL_CODESET codeset)
std::atomic< Rep > m_value
amount_rep amount_rep_cast(statistic_value value)
statistic_value statistic_value_cast(const amount_rep &rep)
time_rep time_rep_cast(statistic_value value)
min_atomic_statistic(void)