Measure elapsed wall clock time in milliseconds. More...
#include "system-wall-clock-ms.h"
Collaboration diagram for ns3::SystemWallClockMs:Public Member Functions | |
| SystemWallClockMs () | |
| ~SystemWallClockMs () | |
| int64_t | End () |
| Stop measuring the time since Start() was called. | |
| int64_t | GetElapsedReal () const |
| int64_t | GetElapsedSystem () const |
| int64_t | GetElapsedUser () const |
| void | Start () |
| Start a measure. | |
Private Attributes | |
| class SystemWallClockMsPrivate * | m_priv |
| The implementation. | |
Measure elapsed wall clock time in milliseconds.
Definition at line 38 of file system-wall-clock-ms.h.
| ns3::SystemWallClockMs::SystemWallClockMs | ( | ) |
Definition at line 135 of file system-wall-clock-ms.cc.
References NS_LOG_FUNCTION.
| ns3::SystemWallClockMs::~SystemWallClockMs | ( | ) |
Definition at line 141 of file system-wall-clock-ms.cc.
References m_priv, and NS_LOG_FUNCTION.
| int64_t ns3::SystemWallClockMs::End | ( | ) |
Stop measuring the time since Start() was called.
It is possible to start a new measurement with Start() after this method returns.
Returns int64_t to avoid dependency on clock_t in ns-3 code.
Definition at line 156 of file system-wall-clock-ms.cc.
References ns3::SystemWallClockMsPrivate::End(), m_priv, and NS_LOG_FUNCTION.
Referenced by ns3::ShowProgress::CheckProgress(), Bench::Run(), ns3::TestCase::Run(), and runBenchOneIteration().
Here is the call graph for this function:
Here is the caller graph for this function:| int64_t ns3::SystemWallClockMs::GetElapsedReal | ( | ) | const |
Returns int64_t to avoid dependency on clock_t in ns-3 code.
Definition at line 163 of file system-wall-clock-ms.cc.
References ns3::SystemWallClockMsPrivate::GetElapsedReal(), m_priv, and NS_LOG_FUNCTION.
Here is the call graph for this function:| int64_t ns3::SystemWallClockMs::GetElapsedSystem | ( | ) | const |
Returns int64_t to avoid dependency on clock_t in ns-3 code.
Definition at line 177 of file system-wall-clock-ms.cc.
References ns3::SystemWallClockMsPrivate::GetElapsedSystem(), m_priv, and NS_LOG_FUNCTION.
Here is the call graph for this function:| int64_t ns3::SystemWallClockMs::GetElapsedUser | ( | ) | const |
Returns int64_t to avoid dependency on clock_t in ns-3 code.
Definition at line 170 of file system-wall-clock-ms.cc.
References ns3::SystemWallClockMsPrivate::GetElapsedUser(), m_priv, and NS_LOG_FUNCTION.
Here is the call graph for this function:| void ns3::SystemWallClockMs::Start | ( | ) |
Start a measure.
Definition at line 149 of file system-wall-clock-ms.cc.
References m_priv, NS_LOG_FUNCTION, and ns3::SystemWallClockMsPrivate::Start().
Referenced by Bench::Run(), ns3::TestCase::Run(), runBenchOneIteration(), and ns3::ShowProgress::ScheduleCheckProgress().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
The implementation.
Definition at line 83 of file system-wall-clock-ms.h.
Referenced by ~SystemWallClockMs(), End(), GetElapsedReal(), GetElapsedSystem(), GetElapsedUser(), and Start().