28 #ifndef INCLUDED_BAZ_TIME_KEEPER_H 29 #define INCLUDED_BAZ_TIME_KEEPER_H 31 #include <gnuradio/sync_block.h> 33 #include <gnuradio/thread/thread.h> 48 typedef boost::shared_ptr<baz_time_keeper> baz_time_keeper_sptr;
76 uint64_t d_last_time_seconds, d_first_time_seconds;
77 double d_last_time_fractional_seconds, d_first_time_fractional_seconds;
78 uint64_t d_time_offset;
83 gr::thread::mutex d_mutex;
84 pmt::pmt_t d_status_port_id;
89 double time(
bool relative =
false);
90 void ignore_next(
bool ignore =
true);
91 int update_count(
void);
93 int work (
int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items);
BAZ_API baz_time_keeper_sptr baz_make_time_keeper(int item_size, float sample_rate)
Return a shared_ptr to a new instance of baz_time_keeper.
class BAZ_API baz_time_keeper
Definition: baz_time_keeper.h:35
#define BAZ_API
Definition: config.h:8
square2 a stream of floats.This uses the preferred technique: subclassing gr::sync_block.
Definition: baz_time_keeper.h:65