Utility class to record the difference between two wall-clock times. More...
#include "system-wall-clock-timestamp.h"
Collaboration diagram for ns3::SystemWallClockTimestamp:Public Member Functions | |
| SystemWallClockTimestamp () | |
| Constructor. | |
| std::time_t | GetInterval () const |
| Get the last recorded interval. | |
| std::time_t | GetLast () const |
| Get the last recorded raw value. | |
| void | Stamp () |
| Record the current wall-clock time and delta since the last stamp(). | |
| std::string | ToString () const |
| Get the last time stamp as a string. | |
Private Attributes | |
| std::time_t | m_diff |
| Difference between the two previous time stamps. | |
| std::time_t | m_last |
| The last time stamp. | |
Utility class to record the difference between two wall-clock times.
Definition at line 27 of file system-wall-clock-timestamp.h.
| ns3::SystemWallClockTimestamp::SystemWallClockTimestamp | ( | ) |
Constructor.
Definition at line 20 of file system-wall-clock-timestamp.cc.
References m_diff, m_last, and Stamp().
Here is the call graph for this function:| std::time_t ns3::SystemWallClockTimestamp::GetInterval | ( | ) | const |
Get the last recorded interval.
Definition at line 50 of file system-wall-clock-timestamp.cc.
References m_diff.
| std::time_t ns3::SystemWallClockTimestamp::GetLast | ( | ) | const |
Get the last recorded raw value.
Definition at line 44 of file system-wall-clock-timestamp.cc.
References m_last.
| void ns3::SystemWallClockTimestamp::Stamp | ( | ) |
Record the current wall-clock time and delta since the last stamp().
Definition at line 28 of file system-wall-clock-timestamp.cc.
References m_diff, and m_last.
Referenced by SystemWallClockTimestamp().
Here is the caller graph for this function:| std::string ns3::SystemWallClockTimestamp::ToString | ( | ) | const |
Get the last time stamp as a string.
Definition at line 36 of file system-wall-clock-timestamp.cc.
References m_last.
|
private |
Difference between the two previous time stamps.
Definition at line 59 of file system-wall-clock-timestamp.h.
Referenced by SystemWallClockTimestamp(), GetInterval(), and Stamp().
|
private |
The last time stamp.
Definition at line 56 of file system-wall-clock-timestamp.h.
Referenced by SystemWallClockTimestamp(), GetLast(), Stamp(), and ToString().