Here is the way you obtain time in C++ and store the current time in a double variable time:
Scheduler &s = Scheduler::instance(); double time = s.clock(); Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear http://www.t-issariyakul.blogspot.com http://www.ece.ubc.ca/~teerawat On Aug 8, 2011, at 1:19 PM, shwta jain wrote: > > Hi all, > > When I run any tcl scripts in ns-2.34 I want to see at that time what code > is running internally. > > When packet goes from one node to another node , I want to see which code is > running internally. > > Is it possible in ns-2.34 > > Plz help > > > > Regards, > > Shweta Jain, >
