BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Public Member Functions | |
average_rate_meter (const microseconds &time_constant=seconds(10)) | |
void | set_time_constant (const microseconds &time_constant) |
void | update (uint32_t bytes_transferred=0) |
uint32_t | get_average_rate () const |
Definition at line 130 of file rate_limiting.cpp.
fc::detail::average_rate_meter::average_rate_meter | ( | const microseconds & | time_constant = seconds(10) | ) |
Definition at line 145 of file rate_limiting.cpp.
uint32_t fc::detail::average_rate_meter::get_average_rate | ( | ) | const |
Definition at line 181 of file rate_limiting.cpp.
void fc::detail::average_rate_meter::set_time_constant | ( | const microseconds & | time_constant | ) |
Definition at line 151 of file rate_limiting.cpp.
void fc::detail::average_rate_meter::update | ( | uint32_t | bytes_transferred = 0 | ) |
Definition at line 155 of file rate_limiting.cpp.