System-dependent implementation for SystemWallClockMs. More...
Public Member Functions | |
int64_t | End (void) |
Stop measuring the time since Start() was called. More... | |
int64_t | End (void) |
Stop measuring the time since Start() was called. More... | |
int64_t | GetElapsedReal (void) const |
int64_t | GetElapsedReal (void) const |
int64_t | GetElapsedSystem (void) const |
int64_t | GetElapsedSystem (void) const |
int64_t | GetElapsedUser (void) const |
int64_t | GetElapsedUser (void) const |
void | Start (void) |
Start a measure. More... | |
void | Start (void) |
Start a measure. More... | |
Private Attributes | |
int64_t | m_elapsedReal |
Elapsed real time, in ms. More... | |
int64_t | m_elapsedSystem |
Elapsed system time, in ms. More... | |
int64_t | m_elapsedUser |
Elapsed user time, in ms. More... | |
clock_t | m_startTime |
Native real time. More... | |
struct tms | m_startTimes |
The native time structure. More... | |
System-dependent implementation for SystemWallClockMs.
Definition at line 41 of file unix-system-wall-clock-ms.cc.
int64_t ns3::SystemWallClockMsPrivate::End | ( | void | ) |
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 71 of file unix-system-wall-clock-ms.cc.
References m_elapsedReal, m_elapsedSystem, m_elapsedUser, m_startTime, m_startTimes, NS_ABORT_MSG_IF, and NS_LOG_FUNCTION.
Referenced by ns3::SystemWallClockMs::End().
int64_t ns3::SystemWallClockMsPrivate::End | ( | void | ) |
int64_t ns3::SystemWallClockMsPrivate::GetElapsedReal | ( | void | ) | const |
Returns int64_t
to avoid dependency on clock_t
in ns-3 code.
Definition at line 126 of file unix-system-wall-clock-ms.cc.
References m_elapsedReal, and NS_LOG_FUNCTION.
Referenced by ns3::SystemWallClockMs::GetElapsedReal().
int64_t ns3::SystemWallClockMsPrivate::GetElapsedReal | ( | void | ) | const |
Returns int64_t
to avoid dependency on clock_t
in ns-3 code.
int64_t ns3::SystemWallClockMsPrivate::GetElapsedSystem | ( | void | ) | const |
Returns int64_t
to avoid dependency on clock_t
in ns-3 code.
Definition at line 140 of file unix-system-wall-clock-ms.cc.
References m_elapsedSystem, and NS_LOG_FUNCTION.
Referenced by ns3::SystemWallClockMs::GetElapsedSystem().
int64_t ns3::SystemWallClockMsPrivate::GetElapsedSystem | ( | void | ) | const |
Returns int64_t
to avoid dependency on clock_t
in ns-3 code.
int64_t ns3::SystemWallClockMsPrivate::GetElapsedUser | ( | void | ) | const |
Returns int64_t
to avoid dependency on clock_t
in ns-3 code.
Definition at line 133 of file unix-system-wall-clock-ms.cc.
References m_elapsedUser, and NS_LOG_FUNCTION.
Referenced by ns3::SystemWallClockMs::GetElapsedUser().
int64_t ns3::SystemWallClockMsPrivate::GetElapsedUser | ( | void | ) | const |
Returns int64_t
to avoid dependency on clock_t
in ns-3 code.
void ns3::SystemWallClockMsPrivate::Start | ( | void | ) |
Start a measure.
Definition at line 64 of file unix-system-wall-clock-ms.cc.
References m_startTime, m_startTimes, and NS_LOG_FUNCTION.
Referenced by ns3::SystemWallClockMs::Start().
void ns3::SystemWallClockMsPrivate::Start | ( | void | ) |
Start a measure.
|
private |
Elapsed real time, in ms.
Definition at line 58 of file unix-system-wall-clock-ms.cc.
Referenced by End(), and GetElapsedReal().
|
private |
Elapsed system time, in ms.
Definition at line 60 of file unix-system-wall-clock-ms.cc.
Referenced by End(), and GetElapsedSystem().
|
private |
Elapsed user time, in ms.
Definition at line 59 of file unix-system-wall-clock-ms.cc.
Referenced by End(), and GetElapsedUser().
|
private |
Native real time.
The wall clock start time.
Definition at line 57 of file unix-system-wall-clock-ms.cc.
|
private |
The native time structure.
Definition at line 53 of file unix-system-wall-clock-ms.cc.