System-dependent implementation for SystemWallClockMs. More...
Collaboration diagram for ns3::SystemWallClockMsPrivate:Public Member Functions | |
| 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 | |
| int64_t | m_elapsedReal |
| Elapsed real time, in ms. | |
| int64_t | m_elapsedSystem |
| Elapsed system time, in ms. | |
| int64_t | m_elapsedUser |
| Elapsed user time, in ms. | |
| std::chrono::system_clock::time_point | m_startTime |
| The wall clock start time. | |
System-dependent implementation for SystemWallClockMs.
Definition at line 30 of file system-wall-clock-ms.cc.
| int64_t ns3::SystemWallClockMsPrivate::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 59 of file system-wall-clock-ms.cc.
References m_elapsedReal, m_elapsedSystem, m_elapsedUser, m_startTime, and NS_LOG_FUNCTION.
| int64_t ns3::SystemWallClockMsPrivate::GetElapsedReal | ( | ) | const |
Returns int64_t to avoid dependency on clock_t in ns-3 code.
Definition at line 104 of file system-wall-clock-ms.cc.
References m_elapsedReal, and NS_LOG_FUNCTION.
| int64_t ns3::SystemWallClockMsPrivate::GetElapsedSystem | ( | ) | const |
Returns int64_t to avoid dependency on clock_t in ns-3 code.
Definition at line 118 of file system-wall-clock-ms.cc.
References m_elapsedSystem, and NS_LOG_FUNCTION.
| int64_t ns3::SystemWallClockMsPrivate::GetElapsedUser | ( | ) | const |
Returns int64_t to avoid dependency on clock_t in ns-3 code.
Definition at line 111 of file system-wall-clock-ms.cc.
References m_elapsedUser, and NS_LOG_FUNCTION.
| void ns3::SystemWallClockMsPrivate::Start | ( | ) |
Start a measure.
Definition at line 52 of file system-wall-clock-ms.cc.
References m_startTime, and NS_LOG_FUNCTION.
|
private |
Elapsed real time, in ms.
Definition at line 46 of file system-wall-clock-ms.cc.
Referenced by End(), and GetElapsedReal().
|
private |
Elapsed system time, in ms.
Definition at line 48 of file system-wall-clock-ms.cc.
Referenced by End(), and GetElapsedSystem().
|
private |
Elapsed user time, in ms.
Definition at line 47 of file system-wall-clock-ms.cc.
Referenced by End(), and GetElapsedUser().
|
private |
The wall clock start time.
Definition at line 45 of file system-wall-clock-ms.cc.