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 971 of file nstime.h.
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 980 of file nstime.h.
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const TimeWithUnit & |
timeU |
|
) |
| |
|
friend |
Output streamer.
- Parameters
-
[in] | os | The stream. |
[in] | timeU | The Time with desired unit |
- Returns
- The stream.
Definition at line 403 of file time.cc.
Time ns3::TimeWithUnit::m_time |
|
private |
The documentation for this class was generated from the following file: