24 #include "cheetah/rcpt/RcptTimerStats.h" 31 template<
typename ClockType>
32 RcptTimerStats<ClockType>::RcptTimerStats(std::size_t window_size)
33 : _data_rates(
boost::accumulators::tag::rolling_window::window_size=window_size)
34 , _window_size(window_size)
39 template<
typename ClockType>
40 RcptTimerStats<ClockType>::~RcptTimerStats()
44 template<
typename ClockType>
47 auto delta = std::chrono::duration_cast<std::chrono::duration<double>>(time - _last);
49 _data_rates(data_rate);
50 _last = ClockType::now();
53 template<
typename ClockType>
56 _last=ClockType::now();
59 template<
typename ClockType>
62 return panda::DataRate<double>(boost::accumulators::rolling_mean(_data_rates) * panda::bytes_per_second);
65 template<
typename StreamType,
typename ClockType>
66 StreamType& operator<<(StreamType& os, RcptTimerStats<ClockType>
const& stats)
panda::DataRate< double > data_rate() const
return the average data rate
Some limits and constants for FLDO.
uint8_t DataType
the underlying data storage type for the amplitude of the signal
Calculate rcpt specific performance information.