#include <latency-detector.h>
Public Member Functions | |
void | add (T val) |
T | avg () const |
measurement (int cap=10) | |
T | median () const |
int | total () const |
Private Attributes | |
int | _capacity |
std::deque< T > | _data |
std::mutex | _m |
T | _sum |
int | _total = 0 |
Definition at line 16 of file latency-detector.h.
|
inline |
Definition at line 19 of file latency-detector.h.
|
inline |
Definition at line 49 of file latency-detector.h.
|
inline |
Definition at line 34 of file latency-detector.h.
|
inline |
Definition at line 22 of file latency-detector.h.
|
inline |
Definition at line 42 of file latency-detector.h.
|
private |
Definition at line 65 of file latency-detector.h.
|
private |
Definition at line 64 of file latency-detector.h.
|
mutableprivate |
Definition at line 62 of file latency-detector.h.
|
private |
Definition at line 63 of file latency-detector.h.
|
private |
Definition at line 66 of file latency-detector.h.