A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::SystemWallClockMsPrivate Class Reference

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.
 

Detailed Description

System-dependent implementation for SystemWallClockMs.

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

Member Function Documentation

◆ End()

int64_t ns3::SystemWallClockMsPrivate::End ( )

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 70 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 ( ) 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 115 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 ( ) 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 129 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 ( ) 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 122 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 ( )

Start a measure.

Definition at line 63 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 57 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 59 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 58 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 56 of file system-wall-clock-ms.cc.

Referenced by End(), and Start().


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