bug 257: change the default log output of time to seconds, not the simulator's resolution.
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Tue, 25 Nov 2008 15:37:43 +0100
changeset 3920 736b807ae8c0
parent 3919 fd796ed5b166
child 3921 ee1f01c019f4
child 3923 f38616f83c3b
bug 257: change the default log output of time to seconds, not the simulator's resolution.
src/simulator/simulator.cc
--- a/src/simulator/simulator.cc	Mon Nov 24 17:49:33 2008 +0000
+++ b/src/simulator/simulator.cc	Tue Nov 25 15:37:43 2008 +0100
@@ -58,7 +58,7 @@
 static void
 TimePrinter (std::ostream &os)
 {
-  os << Simulator::Now ();
+  os << Simulator::Now ().GetSeconds () << "s";
 }
 
 #endif /* NS3_LOG_ENABLE */