Public Member Functions | Private Attributes | List of all members
rsimpl::fps_calc Class Reference

#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

Detailed Description

Definition at line 15 of file sync.h.

Constructor & Destructor Documentation

rsimpl::fps_calc::fps_calc ( unsigned long long  in_number_of_frames_to_sampling,
int  expected_fps 

Definition at line 18 of file sync.h.

Member Function Documentation

double rsimpl::fps_calc::calc_fps ( std::chrono::time_point< std::chrono::system_clock > &  now_time)

Definition at line 25 of file sync.h.

Member Data Documentation

double rsimpl::fps_calc::_actual_fps

Definition at line 45 of file sync.h.

unsigned long long rsimpl::fps_calc::_frame_counter

Definition at line 47 of file sync.h.

unsigned long long rsimpl::fps_calc::_number_of_frames_to_sample

Definition at line 46 of file sync.h.

std::vector<std::chrono::time_point<std::chrono::system_clock> > rsimpl::fps_calc::_time_samples

Definition at line 48 of file sync.h.

The documentation for this class was generated from the following file:

Author(s): Sergey Dorodnicov , Mark Horn , Reagan Lopez
autogenerated on Fri Mar 13 2020 03:16:19