[ns] How to determine the current simulation time from C++ code?

2006-10-10 Thread Piyush Agrawal
Hi, How can I print the current time in the simulation from the C++ code? TIA, Piyush -- Piyush Agrawal 4th Year Undergraduate Student, Department of Computer Science & Engineering, IIT Kanpur, India Homepage: http://www.cse.iitk.ac.in/users/piyushag

Re: [ns] How to determine the current simulation time from C++ code?

2006-10-11 Thread Gianko
Piyush Agrawal wrote: > Hi, > > How can I print the current time in the simulation from the C++ code? > double curr_time_ = Schedule::instance().clock G.

Re: [ns] How to determine the current simulation time from C++ code?

2006-10-11 Thread M. Akif YAZICI
Try: Tcl& tcl = Tcl::instance(); tcl.evalf("puts [$ns now]");