10#include <boost/date_time/posix_time/posix_time.hpp>
A message sending rate control class for perfdhcp.
boost::posix_time::ptime currentTime()
Convenience function returning current time.
RateControl()
Default constructor.
uint64_t total_pkts_sent_count_
Holds number of packets send from the beginning.
unsigned int getRate() const
Returns the rate.
unsigned int rate_
Holds a desired rate value.
void setRate(const int rate)
Sets the new rate.
uint64_t getOutboundMessageCount(bool const waiting_to_exit=false)
Returns number of messages to be sent "now".
boost::posix_time::ptime start_time_
Holds time of start of testing.
Defines the logger used by the top-level component of kea-lfc.