A Discrete-Event Network Simulator
API
ns3::SystemWallClockMsPrivate Class Reference

System-dependent implementation for SystemWallClockMs. More...

+ Collaboration diagram for ns3::SystemWallClockMsPrivate:

Public Member Functions

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

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...
 
std::chrono::system_clock::time_point m_startTime
 The wall clock start time. More...
 

Detailed Description

System-dependent implementation for SystemWallClockMs.

Definition at line 40 of file system-wall-clock-ms.cc.

Member Function Documentation

◆ End()

int64_t ns3::SystemWallClockMsPrivate::End ( void  )

Stop measuring the time since Start() was called.

Returns
the measured elapsed wall clock time (in milliseconds) since Start() was invoked.

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 69 of file system-wall-clock-ms.cc.

References m_elapsedReal, m_elapsedSystem, m_elapsedUser, m_startTime, and NS_LOG_FUNCTION.

Referenced by ns3::SystemWallClockMs::End().

+ Here is the caller graph for this function:

◆ GetElapsedReal()

int64_t ns3::SystemWallClockMsPrivate::GetElapsedReal ( void  ) const

Returns
the measured elapsed wall clock time (in milliseconds) since Start() was invoked.

Returns int64_t to avoid dependency on clock_t in ns-3 code.

Definition at line 114 of file system-wall-clock-ms.cc.

References m_elapsedReal, and NS_LOG_FUNCTION.

Referenced by ns3::SystemWallClockMs::GetElapsedReal().

+ Here is the caller graph for this function:

◆ GetElapsedSystem()

int64_t ns3::SystemWallClockMsPrivate::GetElapsedSystem ( void  ) const

Returns
the measured elapsed 'system' wall clock time (in milliseconds) since Start() was invoked.

Returns int64_t to avoid dependency on clock_t in ns-3 code.

Definition at line 128 of file system-wall-clock-ms.cc.

References m_elapsedSystem, and NS_LOG_FUNCTION.

Referenced by ns3::SystemWallClockMs::GetElapsedSystem().

+ Here is the caller graph for this function:

◆ GetElapsedUser()

int64_t ns3::SystemWallClockMsPrivate::GetElapsedUser ( void  ) const

Returns
the measured elapsed 'user' wall clock time (in milliseconds) since Start() was invoked.

Returns int64_t to avoid dependency on clock_t in ns-3 code.

Definition at line 121 of file system-wall-clock-ms.cc.

References m_elapsedUser, and NS_LOG_FUNCTION.

Referenced by ns3::SystemWallClockMs::GetElapsedUser().

+ Here is the caller graph for this function:

◆ Start()

void ns3::SystemWallClockMsPrivate::Start ( void  )

Start a measure.

Definition at line 62 of file system-wall-clock-ms.cc.

References m_startTime, and NS_LOG_FUNCTION.

Referenced by ns3::SystemWallClockMs::Start().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_elapsedReal

int64_t ns3::SystemWallClockMsPrivate::m_elapsedReal
private

Elapsed real time, in ms.

Definition at line 56 of file system-wall-clock-ms.cc.

Referenced by End(), and GetElapsedReal().

◆ m_elapsedSystem

int64_t ns3::SystemWallClockMsPrivate::m_elapsedSystem
private

Elapsed system time, in ms.

Definition at line 58 of file system-wall-clock-ms.cc.

Referenced by End(), and GetElapsedSystem().

◆ m_elapsedUser

int64_t ns3::SystemWallClockMsPrivate::m_elapsedUser
private

Elapsed user time, in ms.

Definition at line 57 of file system-wall-clock-ms.cc.

Referenced by End(), and GetElapsedUser().

◆ m_startTime

std::chrono::system_clock::time_point ns3::SystemWallClockMsPrivate::m_startTime
private

The wall clock start time.

Definition at line 55 of file system-wall-clock-ms.cc.

Referenced by End(), and Start().


The documentation for this class was generated from the following file: