BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | List of all members
fc::detail::average_rate_meter Class Reference

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
 

Detailed Description

Definition at line 130 of file rate_limiting.cpp.

Constructor & Destructor Documentation

fc::detail::average_rate_meter::average_rate_meter ( const microseconds time_constant = seconds(10))

Definition at line 145 of file rate_limiting.cpp.

Member Function Documentation

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.


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