[Ns-developers] ns3 operator << for Time objects

Mathieu Lacage Mathieu.Lacage at sophia.inria.fr
Mon Jul 2 06:20:01 PDT 2007


hi,

I just tried to do the following:
std::cout << Simulator::Now << std::endl;

and I get something like the following:

40ts

which (I think) says that I am 40 "time steps" into the simulation. This
output is not super useful and it would be nice if it could print the
actual time unit. Is there someone who knows where the operator <<
(std::ostream) is implemented for Time objects to allow me to patch
this ?

Mathieu
-- 



More information about the Ns-developers mailing list