A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
anonymous_namespace{sample-log-time-format.cc} Namespace Reference

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.
 

Function Documentation

◆ ReplacementTimePrinter()

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

Parameters
[in]osThe 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ 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().

+ Here is the call graph for this function: