![]() |
MySQL 26.7.0
Source Code Documentation
|
Calculates statistic value in a time window. More...
#include <sliding_window_counter.h>
Public Member Functions | |
| void | update (unsigned long long current) |
| Updates the window counter. More... | |
| unsigned long long | get () const |
| Obtains the value in the current time window. More... | |
Public Attributes | |
| unsigned long long | m_previous {0} |
| Previous global counter. More... | |
| unsigned long long | m_value {0} |
| Counter in the current window. More... | |
Calculates statistic value in a time window.
| unsigned long long mysql::csa::Sliding_window_counter::get | ( | ) | const |
Obtains the value in the current time window.
| void mysql::csa::Sliding_window_counter::update | ( | unsigned long long | current | ) |
Updates the window counter.
| current | Global value, registered at current point of time |
| unsigned long long mysql::csa::Sliding_window_counter::m_previous {0} |
Previous global counter.
| unsigned long long mysql::csa::Sliding_window_counter::m_value {0} |
Counter in the current window.