A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::SystemWallClockMs Class Reference

measure elapsed time in milliseconds More...

#include <system-wall-clock-ms.h>

+ Collaboration diagram for ns3::SystemWallClockMs:

Public Member Functions

 SystemWallClockMs ()
 ~SystemWallClockMs ()
int64_t End (void)
 Stop measuring the time since Start() was called.
int64_t GetElapsedReal (void) const
int64_t GetElapsedSystem (void) const
int64_t GetElapsedUser (void) const
void Start (void)

Private Attributes

class SystemWallClockMsPrivatem_priv

Detailed Description

measure elapsed time in milliseconds

Definition at line 32 of file system-wall-clock-ms.h.

Constructor & Destructor Documentation

ns3::SystemWallClockMs::SystemWallClockMs ( )

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

ns3::SystemWallClockMs::~SystemWallClockMs ( )

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

References m_priv.

Member Function Documentation

int64_t ns3::SystemWallClockMs::End ( void  )

Stop measuring the time since Start() was called.

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

It is possible to start a new measurement with ns3::SystemWallClockMs::Start after this method returns.

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 ns3::SystemWallClockMsPrivate::End(), and m_priv.

Referenced by ns3::TestCase::Run(), Bench::RunBench(), and runBench().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int64_t ns3::SystemWallClockMs::GetElapsedReal ( void  ) const
Returns
the measured elapsed wall clock time (in milliseconds) since ns3::SystemWallClockMs::Start was invoked.

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

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

References ns3::SystemWallClockMsPrivate::GetElapsedReal(), and m_priv.

Referenced by ns3::TestRunnerImpl::PrintReport().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int64_t ns3::SystemWallClockMs::GetElapsedSystem ( void  ) const
Returns
the measured elapsed 'system' wall clock time (in milliseconds) since ns3::SystemWallClockMs::Start was invoked.

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

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

References ns3::SystemWallClockMsPrivate::GetElapsedSystem(), and m_priv.

Referenced by ns3::TestRunnerImpl::PrintReport().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int64_t ns3::SystemWallClockMs::GetElapsedUser ( void  ) const
Returns
the measured elapsed 'user' wall clock time (in milliseconds) since ns3::SystemWallClockMs::Start was invoked.

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

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

References ns3::SystemWallClockMsPrivate::GetElapsedUser(), and m_priv.

Referenced by ns3::TestRunnerImpl::PrintReport().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::SystemWallClockMs::Start ( void  )

Start a measure.

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

References m_priv, and ns3::SystemWallClockMsPrivate::Start().

Referenced by ns3::TestCase::Run(), Bench::RunBench(), and runBench().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

class SystemWallClockMsPrivate* ns3::SystemWallClockMs::m_priv
private

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