#include <sync.h>
Public Member Functions | |
double | calc_fps (std::chrono::time_point< std::chrono::system_clock > &now_time) |
fps_calc (unsigned long long in_number_of_frames_to_sampling, int expected_fps) | |
Private Attributes | |
double | _actual_fps |
unsigned long long | _frame_counter |
unsigned long long | _number_of_frames_to_sample |
std::vector < std::chrono::time_point < std::chrono::system_clock > > | _time_samples |
rsimpl::fps_calc::fps_calc | ( | unsigned long long | in_number_of_frames_to_sampling, |
int | expected_fps | ||
) | [inline] |
double rsimpl::fps_calc::calc_fps | ( | std::chrono::time_point< std::chrono::system_clock > & | now_time | ) | [inline] |
double rsimpl::fps_calc::_actual_fps [private] |
unsigned long long rsimpl::fps_calc::_frame_counter [private] |
unsigned long long rsimpl::fps_calc::_number_of_frames_to_sample [private] |
std::vector<std::chrono::time_point<std::chrono::system_clock> > rsimpl::fps_calc::_time_samples [private] |