BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet 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

◆ average_rate_meter()

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

◆ get_average_rate()

uint32_t fc::detail::average_rate_meter::get_average_rate ( ) const

Definition at line 181 of file rate_limiting.cpp.

◆ set_time_constant()

void fc::detail::average_rate_meter::set_time_constant ( const microseconds time_constant)

Definition at line 151 of file rate_limiting.cpp.

◆ update()

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: