Functions | |
void | ReplacementTimePrinter (std::ostream &os) |
Pre-ns-3.26 TimePrinter equivalent (was called LogTimePrinter). | |
void | ReplaceTimePrinter () |
Set ReplacementTimePrinter as the time printer for log messages. | |
void anonymous_namespace{sample-log-time-format.cc}::ReplacementTimePrinter | ( | std::ostream & | os | ) |
Pre-ns-3.26 TimePrinter equivalent (was called LogTimePrinter).
Prior to ns-3.26, the time printer used default C++ iostream precision This function sets it back to the format used before ns-3.26
[in] | os | The stream to print on. |
Definition at line 97 of file sample-log-time-format.cc.
References ns3::Time::GetSeconds(), and ns3::Simulator::Now().
Referenced by ReplaceTimePrinter().
void anonymous_namespace{sample-log-time-format.cc}::ReplaceTimePrinter | ( | ) |
Set ReplacementTimePrinter as the time printer for log messages.
Definition at line 104 of file sample-log-time-format.cc.
References ns3::LogSetTimePrinter(), and ReplacementTimePrinter().