11 #ifndef INCLUDED_BLOCKS_PROBE_RATE_H
12 #define INCLUDED_BLOCKS_PROBE_RATE_H
16 #include <string_view>
29 typedef std::shared_ptr<probe_rate>
sptr;
42 double update_rate_ms = 500.0,
43 double alpha = 0.0001,
44 std::string_view name =
"");
55 virtual void set_name(std::string_view name) = 0;
throughput measurement
Definition: probe_rate.h:26
static sptr make(size_t itemsize, double update_rate_ms=500.0, double alpha=0.0001, std::string_view name="")
Make a throughput measurement block.
bool start() override=0
Called to enable drivers, etc for i/o devices.
bool stop() override=0
Called to disable drivers, etc for i/o devices.
std::shared_ptr< probe_rate > sptr
Definition: probe_rate.h:29
virtual void set_alpha(double alpha)=0
Set the decay of the exponential rate average.
virtual void set_name(std::string_view name)=0
Set the name of this probe Used in the emitted dictionaries if not empty.
synchronous 1:1 input to output with history
Definition: sync_block.h:26
#define BLOCKS_API
Definition: gr-blocks/include/gnuradio/blocks/api.h:18
GR_RUNTIME_API size_t itemsize(types::vector_type type)
GNU Radio logging wrapper.
Definition: basic_block.h:29