18 std::cout << std::endl <<
"#### RS Frame Rate Printer ####" << std::endl;
28 auto period = std::chrono::milliseconds(1000 /
_render_rate).count();
30 auto diff = std::chrono::duration_cast<std::chrono::milliseconds>(curr_time -
_last_print_time).
count();
42 auto sp =
p.second.get_stream_profile();
43 std::cout << sp.stream_name() <<
"[" << sp.stream_index() <<
"]: " <<
44 p.second.get_fps() <<
"/" << sp.fps() <<
" [FPS] || ";
82 auto diff = std::chrono::duration_cast<std::chrono::milliseconds>(curr_time - oldest).
count() / 1000.f;
unsigned long long last_frame_number()
stream_profile get_profile() const
std::map< const rs2_stream_profile *, profile > _profiles
rs2::stream_profile get_stream_profile()
std::chrono::steady_clock::time_point _last_print_time
bool should_process(const rs2::frame &frame) override
rs2::stream_profile _stream_profile
unsigned long long _last_frame_number
rs2::frame process_frame(const rs2::frame_source &source, const rs2::frame &f) override
void on_frame_arrival(const rs2::frame &f)
const rs2_stream_profile * get() const
GLsizei GLsizei GLchar * source
std::vector< std::chrono::steady_clock::time_point > _time_points
unsigned long long get_frame_number() const
std::chrono::steady_clock::time_point _last_time