Public Member Functions | Private Attributes | List of all members
measurement< T > Class Template Reference

#include <latency-detector.h>

Public Member Functions

void add (T val)
 
avg () const
 
 measurement (int cap=10)
 
median () const
 
int total () const
 

Private Attributes

int _capacity
 
std::deque< T > _data
 
std::mutex _m
 
_sum
 
int _total = 0
 

Detailed Description

template<class T>
class measurement< T >

Definition at line 16 of file latency-detector.h.

Constructor & Destructor Documentation

template<class T>
measurement< T >::measurement ( int  cap = 10)
inline

Definition at line 19 of file latency-detector.h.

Member Function Documentation

template<class T>
void measurement< T >::add ( val)
inline

Definition at line 49 of file latency-detector.h.

template<class T>
T measurement< T >::avg ( ) const
inline

Definition at line 34 of file latency-detector.h.

template<class T>
T measurement< T >::median ( ) const
inline

Definition at line 22 of file latency-detector.h.

template<class T>
int measurement< T >::total ( ) const
inline

Definition at line 42 of file latency-detector.h.

Member Data Documentation

template<class T>
int measurement< T >::_capacity
private

Definition at line 65 of file latency-detector.h.

template<class T>
std::deque<T> measurement< T >::_data
private

Definition at line 64 of file latency-detector.h.

template<class T>
std::mutex measurement< T >::_m
mutableprivate

Definition at line 62 of file latency-detector.h.

template<class T>
T measurement< T >::_sum
private

Definition at line 63 of file latency-detector.h.

template<class T>
int measurement< T >::_total = 0
private

Definition at line 66 of file latency-detector.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:32