measure elapsed time in milliseconds More...
#include <system-wall-clock-ms.h>
Public Member Functions | |
SystemWallClockMs () | |
~SystemWallClockMs () | |
int64_t | End (void) |
Stop measuring the time since Start() was called. More... | |
int64_t | GetElapsedReal (void) const |
int64_t | GetElapsedSystem (void) const |
int64_t | GetElapsedUser (void) const |
void | Start (void) |
Start a measure. More... | |
Private Attributes | |
class SystemWallClockMsPrivate * | m_priv |
measure elapsed time in milliseconds
Definition at line 32 of file system-wall-clock-ms.h.
ns3::SystemWallClockMs::SystemWallClockMs | ( | ) |
Definition at line 130 of file unix-system-wall-clock-ms.cc.
References NS_LOG_FUNCTION.
ns3::SystemWallClockMs::~SystemWallClockMs | ( | ) |
Definition at line 136 of file unix-system-wall-clock-ms.cc.
References m_priv, and NS_LOG_FUNCTION.
int64_t ns3::SystemWallClockMs::End | ( | void | ) |
Stop measuring the time since Start() was called.
It is possible to start a new measurement with ns3::SystemWallClockMs::Start after this method returns.
Returns int64_t to avoid dependency on clock_t in ns-3 code.
Definition at line 151 of file unix-system-wall-clock-ms.cc.
References ns3::SystemWallClockMsPrivate::End(), m_priv, and NS_LOG_FUNCTION.
Referenced by ns3::TestCase::Run(), Bench::RunBench(), and runBench().
int64_t ns3::SystemWallClockMs::GetElapsedReal | ( | void | ) | const |
Returns int64_t to avoid dependency on clock_t in ns-3 code.
Definition at line 158 of file unix-system-wall-clock-ms.cc.
References ns3::SystemWallClockMsPrivate::GetElapsedReal(), m_priv, and NS_LOG_FUNCTION.
Referenced by ns3::TestRunnerImpl::PrintReport().
int64_t ns3::SystemWallClockMs::GetElapsedSystem | ( | void | ) | const |
Returns int64_t to avoid dependency on clock_t in ns-3 code.
Definition at line 172 of file unix-system-wall-clock-ms.cc.
References ns3::SystemWallClockMsPrivate::GetElapsedSystem(), m_priv, and NS_LOG_FUNCTION.
Referenced by ns3::TestRunnerImpl::PrintReport().
int64_t ns3::SystemWallClockMs::GetElapsedUser | ( | void | ) | const |
Returns int64_t to avoid dependency on clock_t in ns-3 code.
Definition at line 165 of file unix-system-wall-clock-ms.cc.
References ns3::SystemWallClockMsPrivate::GetElapsedUser(), m_priv, and NS_LOG_FUNCTION.
Referenced by ns3::TestRunnerImpl::PrintReport().
void ns3::SystemWallClockMs::Start | ( | void | ) |
Start a measure.
Definition at line 144 of file unix-system-wall-clock-ms.cc.
References m_priv, NS_LOG_FUNCTION, and ns3::SystemWallClockMsPrivate::Start().
Referenced by ns3::TestCase::Run(), Bench::RunBench(), and runBench().
|
private |
Definition at line 76 of file system-wall-clock-ms.h.
Referenced by End(), GetElapsedReal(), GetElapsedSystem(), GetElapsedUser(), Start(), and ~SystemWallClockMs().