A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Bench Class Reference
+ Collaboration diagram for Bench:

Public Member Functions

 Bench ()
void ReadDistribution (std::istream &istream)
void RunBench (void)
void SetTotal (uint32_t total)

Private Member Functions

void Cb (void)

Private Attributes

std::vector< uint64_t >
::const_iterator 
m_current
std::vector< uint64_t > m_distribution
uint32_t m_n
uint32_t m_total

Detailed Description

Definition at line 32 of file bench-simulator.cc.

Constructor & Destructor Documentation

Bench::Bench ( )

Definition at line 47 of file bench-simulator.cc.

Member Function Documentation

void Bench::Cb ( void  )
private

Definition at line 110 of file bench-simulator.cc.

References g_debug, ns3::Time::GetSeconds(), m_current, m_distribution, m_n, m_total, ns3::NanoSeconds(), and ns3::Now().

Referenced by RunBench().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Bench::ReadDistribution ( std::istream &  istream)

Definition at line 59 of file bench-simulator.cc.

References data, and m_distribution.

Referenced by main().

+ Here is the caller graph for this function:

void Bench::RunBench ( void  )

Definition at line 79 of file bench-simulator.cc.

References Cb(), ns3::SystemWallClockMs::End(), m_current, m_distribution, m_n, ns3::NanoSeconds(), and ns3::SystemWallClockMs::Start().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Bench::SetTotal ( uint32_t  total)

Definition at line 53 of file bench-simulator.cc.

References m_total.

Referenced by main().

+ Here is the caller graph for this function:

Member Data Documentation

std::vector<uint64_t>::const_iterator Bench::m_current
private

Definition at line 42 of file bench-simulator.cc.

Referenced by Cb(), and RunBench().

std::vector<uint64_t> Bench::m_distribution
private

Definition at line 41 of file bench-simulator.cc.

Referenced by Cb(), ReadDistribution(), and RunBench().

uint32_t Bench::m_n
private

Definition at line 43 of file bench-simulator.cc.

Referenced by Cb(), and RunBench().

uint32_t Bench::m_total
private

Definition at line 44 of file bench-simulator.cc.

Referenced by Cb(), and SetTotal().


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