[ns] Simulation Status
Mubashir Rehmani
mshrehmani at gmail.com
Fri Jul 3 03:00:43 PDT 2009
Hi Nicholas,
Yes, it is possible. You need to incorporate this header file in your .cc
file
#include<fstream.h>
ofstream abc("file1.tr");
and then print anything (any variable you want to monitor) at any simulation
time by using this format:
if(Scheduler::instance().clock() == 10)
{
abc<<"My name is Nicholas "<<endl;
}
Hope it helps.
Regards
Mubashir Husain Rehmani
2009/7/3 Nicholas Loulloudes <loulloudes.n at cs.ucy.ac.cy>
>
>
> Hi all,
>
> Is there a way i can print to a file the simulation time every 't'
> seconds so i can observe the status of my simulation?
>
> Thanks in advance.
>
> --
> _________________________________________________
>
> Nicholas Loulloudes
> High Performance Computing Systems Laboratory (HPCL)
> University of Cyprus,
> Nicosia, Cyprus
>
> Tel: +357-22892663
> Email: loulloudes.n[at]cs.ucy.ac.cy
> _________________________________________________
>
>
>
--
Mubashir Husain Rehmani
More information about the Ns-users
mailing list