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

#include <rendering.h>

Public Member Functions

void add_timestamp (double timestamp, unsigned long long frame_counter)
 
 fps_calc ()
 
 fps_calc (const fps_calc &other)
 
double get_fps () const
 

Private Attributes

int _counter
 
double _delta
 
unsigned long long _last_frame_counter
 
double _last_timestamp
 
std::mutex _mtx
 
unsigned long long _num_of_frames
 

Static Private Attributes

static const int _numerator = 1000
 
static const int _skip_frames = 5
 

Detailed Description

Definition at line 48 of file rendering.h.

Constructor & Destructor Documentation

rs2::fps_calc::fps_calc ( )
inline

Definition at line 51 of file rendering.h.

rs2::fps_calc::fps_calc ( const fps_calc other)
inline

Definition at line 58 of file rendering.h.

Member Function Documentation

void rs2::fps_calc::add_timestamp ( double  timestamp,
unsigned long long  frame_counter 
)
inline

Definition at line 66 of file rendering.h.

double rs2::fps_calc::get_fps ( ) const
inline

Definition at line 83 of file rendering.h.

Member Data Documentation

int rs2::fps_calc::_counter
private

Definition at line 95 of file rendering.h.

double rs2::fps_calc::_delta
private

Definition at line 96 of file rendering.h.

unsigned long long rs2::fps_calc::_last_frame_counter
private

Definition at line 99 of file rendering.h.

double rs2::fps_calc::_last_timestamp
private

Definition at line 97 of file rendering.h.

std::mutex rs2::fps_calc::_mtx
mutableprivate

Definition at line 100 of file rendering.h.

unsigned long long rs2::fps_calc::_num_of_frames
private

Definition at line 98 of file rendering.h.

const int rs2::fps_calc::_numerator = 1000
staticprivate

Definition at line 93 of file rendering.h.

const int rs2::fps_calc::_skip_frames = 5
staticprivate

Definition at line 94 of file rendering.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:40