[ns] How to determine the current simulation time from C++ code?
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?
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?
Try: Tcl& tcl = Tcl::instance(); tcl.evalf("puts [$ns now]");