A Time with attached unit, to facilitate output in that unit.
More...
#include "nstime.h"
A Time with attached unit, to facilitate output in that unit.
Definition at line 1438 of file nstime.h.
◆ TimeWithUnit()
ns3::TimeWithUnit::TimeWithUnit |
( |
const Time | time, |
|
|
const Time::Unit | unit ) |
|
inline |
Attach a unit to a Time.
- Parameters
-
[in] | time | The time. |
[in] | unit | The unit to use for output |
Definition at line 1447 of file nstime.h.
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | os, |
|
|
const TimeWithUnit & | timeU ) |
|
friend |
Output streamer.
- Parameters
-
[in,out] | os | The stream. |
[in] | timeU | The Time with desired unit |
- Returns
- The stream.
Definition at line 416 of file time.cc.
◆ m_time
Time ns3::TimeWithUnit::m_time |
|
private |
◆ m_unit
The unit to use in output.
Definition at line 1455 of file nstime.h.
The documentation for this class was generated from the following file: