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 |
Definition at line 32 of file bench-simulator.cc.
Bench::Bench | ( | ) |
Definition at line 47 of file bench-simulator.cc.
|
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().
void Bench::ReadDistribution | ( | std::istream & | istream | ) |
Definition at line 59 of file bench-simulator.cc.
References data, and m_distribution.
Referenced by main().
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().
void Bench::SetTotal | ( | uint32_t | total | ) |
Definition at line 53 of file bench-simulator.cc.
References m_total.
Referenced by main().
|
private |
Definition at line 42 of file bench-simulator.cc.
Referenced by Cb(), and RunBench().
|
private |
Definition at line 41 of file bench-simulator.cc.
Referenced by Cb(), ReadDistribution(), and RunBench().
|
private |
Definition at line 43 of file bench-simulator.cc.
Referenced by Cb(), and RunBench().
|
private |
Definition at line 44 of file bench-simulator.cc.
Referenced by Cb(), and SetTotal().