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

Raj Bhattacharjea raj.b at gatech.edu
Mon Jul 2 09:29:48 PDT 2007


On 7/2/07, Mathieu Lacage <Mathieu.Lacage at sophia.inria.fr> wrote:
>
> 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 ?

It is in: ns-3-dev/src/simulator/time.cc , line 91.

-- 
Raj Bhattacharjea
Georgia Institute of Technology
School of Electrical and Computer Engineering
Systems Analyst
404.894.2955


More information about the Ns-developers mailing list